]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-108267: Fix object.__setattr__ regression in dataclasses docs (#119082)
authorShantanu <12621235+hauntsaninja@users.noreply.github.com>
Thu, 16 May 2024 13:39:37 +0000 (06:39 -0700)
committerGitHub <noreply@github.com>
Thu, 16 May 2024 13:39:37 +0000 (09:39 -0400)
Doc/library/dataclasses.rst

index 98459c1b6e10200d8f1fe6cd57fdb7254fe3f5d5..7aa754c9ccc0a14b6ceb743c26ac0cf2b0875501 100644 (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: