]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-108267: Fix object.__setattr__ regression in dataclasses docs (GH-119082...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 16 May 2024 13:46:20 +0000 (15:46 +0200)
committerGitHub <noreply@github.com>
Thu, 16 May 2024 13:46:20 +0000 (13:46 +0000)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Doc/library/dataclasses.rst

index e000aea1de382374df84ccc9a290599ccee5ab4e..97929b51ae352b7fef7cc7db0babcada19f69342 100644 (file)
@@ -613,7 +613,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: