summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrozenBob <30644137+FrozenBob@users.noreply.github.com>2023-08-23 07:11:15 (GMT)
committerGitHub <noreply@github.com>2023-08-23 07:11:15 (GMT)
commit79fdacc0059a3959074d2d9d054653eae1dcfe06 (patch)
tree1ba001247c866db03071a703cb062e40c8021baa
parent64f99350351bc46e016b2286f36ba7cd669b79e3 (diff)
downloadcpython-79fdacc0059a3959074d2d9d054653eae1dcfe06.zip
cpython-79fdacc0059a3959074d2d9d054653eae1dcfe06.tar.gz
cpython-79fdacc0059a3959074d2d9d054653eae1dcfe06.tar.bz2
gh-108267: Dataclasses docs: Fix object.__setattr__ typo (#108355)
Fixed a sentence in dataclasses.rst Changed "__setattr__" to "object.__setattr__" in a section that was specifically supposed to refer to the __setattr__ method of the object class. Also suppressed the link to the data model docs for __setattr__, since we're talking about a specific __setattr__ implementation, not __setattr__ methods in general.
-rw-r--r--Doc/library/dataclasses.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst
index 535a60c..d687487 100644
--- a/Doc/library/dataclasses.rst
+++ b/Doc/library/dataclasses.rst
@@ -609,7 +609,7 @@ 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:`~object.__setattr__`.
+must use :meth:`!object.__setattr__`.
Inheritance
-----------