summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-05-16 13:56:42 (GMT)
committerGitHub <noreply@github.com>2024-05-16 13:56:42 (GMT)
commitc69fe804b6c0510b6749f018edbc62819dfb5247 (patch)
treed3e946428699e10496f2d6764eac38a9d3f7aa09
parent8a4730e95ebfceeb3a6a9b037444db3eba4d1123 (diff)
downloadcpython-c69fe804b6c0510b6749f018edbc62819dfb5247.zip
cpython-c69fe804b6c0510b6749f018edbc62819dfb5247.tar.gz
cpython-c69fe804b6c0510b6749f018edbc62819dfb5247.tar.bz2
[3.13] gh-108267: Fix object.__setattr__ regression in dataclasses docs (GH-119082) (#119097)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
-rw-r--r--Doc/library/dataclasses.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst
index 98459c1..7aa754c 100644
--- a/Doc/library/dataclasses.rst
+++ b/Doc/library/dataclasses.rst
@@ -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: