[3.13] gh-108267: Fix object.__setattr__ regression in dataclasses docs (GH-119082) (#119097)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2024-05-16 15:56:42 +02:00 committed by GitHub
parent 8a4730e95e
commit c69fe804b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -615,7 +615,8 @@ methods will raise a :exc:`FrozenInstanceError` when invoked.
There is a tiny performance penalty when using ``frozen=True``:
:meth:`~object.__init__` cannot use simple assignment to initialize fields, and
must use :meth:`!__setattr__`.
must use :meth:`!object.__setattr__`.
.. Make sure to not remove "object" from "object.__setattr__" in the above markup
.. _dataclasses-inheritance: