summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorShantanu <12621235+hauntsaninja@users.noreply.github.com>2024-05-16 13:39:37 (GMT)
committerGitHub <noreply@github.com>2024-05-16 13:39:37 (GMT)
commit17cba55786a1b1e6b715b1a88ae1f9088f5d5999 (patch)
treeaef2800f938c111051b82de0e88fd5c222df740b /Doc
parentb6839942a8906fccdd64e749abeefe8a61ce7e03 (diff)
downloadcpython-17cba55786a1b1e6b715b1a88ae1f9088f5d5999.zip
cpython-17cba55786a1b1e6b715b1a88ae1f9088f5d5999.tar.gz
cpython-17cba55786a1b1e6b715b1a88ae1f9088f5d5999.tar.bz2
gh-108267: Fix object.__setattr__ regression in dataclasses docs (#119082)
Diffstat (limited to 'Doc')
-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: