]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-108267 Fix another dataclasses docs typo (GH-119277) (#119280)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 20 May 2024 22:48:54 +0000 (00:48 +0200)
committerGitHub <noreply@github.com>
Mon, 20 May 2024 22:48:54 +0000 (18:48 -0400)
gh-108267 Fix another dataclasses docs typo (GH-119277)
(cherry picked from commit 423bbcbbc43cacfb6a217c04f890a47d3cf7c3a9)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Doc/library/dataclasses.rst

index 97929b51ae352b7fef7cc7db0babcada19f69342..71fbd1996e7381559f78e15c299412233ce659d6 100644 (file)
@@ -614,7 +614,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: