diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-05-16 13:46:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-16 13:46:20 (GMT) |
commit | a3db4e8f964499eabeddb19a6201f3d3b73d7443 (patch) | |
tree | c11d45c9477fb5bbc1e86789416be020b6d92bdc /Doc | |
parent | 0a761cafc8c806e7f408611caf578db902435d51 (diff) | |
download | cpython-a3db4e8f964499eabeddb19a6201f3d3b73d7443.zip cpython-a3db4e8f964499eabeddb19a6201f3d3b73d7443.tar.gz cpython-a3db4e8f964499eabeddb19a6201f3d3b73d7443.tar.bz2 |
[3.12] gh-108267: Fix object.__setattr__ regression in dataclasses docs (GH-119082) (#119098)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/dataclasses.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst index e000aea..97929b5 100644 --- a/Doc/library/dataclasses.rst +++ b/Doc/library/dataclasses.rst @@ -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: |