summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAlex Waygood <Alex.Waygood@Gmail.com>2024-05-20 22:34:57 (GMT)
committerGitHub <noreply@github.com>2024-05-20 22:34:57 (GMT)
commit423bbcbbc43cacfb6a217c04f890a47d3cf7c3a9 (patch)
tree4c4ad98fe28c5860811a0cf153d751bd24edec1f /Doc
parentfe921931a35b461fb81821a474b510f4d67c520b (diff)
downloadcpython-423bbcbbc43cacfb6a217c04f890a47d3cf7c3a9.zip
cpython-423bbcbbc43cacfb6a217c04f890a47d3cf7c3a9.tar.gz
cpython-423bbcbbc43cacfb6a217c04f890a47d3cf7c3a9.tar.bz2
gh-108267 Fix another dataclasses docs typo (#119277)
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 7aa754c..045bf62 100644
--- a/Doc/library/dataclasses.rst
+++ b/Doc/library/dataclasses.rst
@@ -616,7 +616,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:`!object.__setattr__`.
-.. Make sure to not remove "object" from "object.__setattr__" in the above markup
+
+.. Make sure to not remove "object" from "object.__setattr__" in the above markup!
.. _dataclasses-inheritance: