mirror of
https://github.com/python/cpython.git
synced 2025-08-19 08:11:46 +00:00
[3.12] gh-108267 Fix another dataclasses docs typo (GH-119277) (#119280)
gh-108267 Fix another dataclasses docs typo (GH-119277)
(cherry picked from commit 423bbcbbc4
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
f489911f2c
commit
cdccafb2d4
1 changed files with 2 additions and 1 deletions
|
@ -614,7 +614,8 @@ methods will raise a :exc:`FrozenInstanceError` when invoked.
|
||||||
There is a tiny performance penalty when using ``frozen=True``:
|
There is a tiny performance penalty when using ``frozen=True``:
|
||||||
:meth:`~object.__init__` cannot use simple assignment to initialize fields, and
|
:meth:`~object.__init__` cannot use simple assignment to initialize fields, and
|
||||||
must use :meth:`!object.__setattr__`.
|
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:
|
.. _dataclasses-inheritance:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue