mirror of
https://github.com/python/cpython
synced 2024-10-14 19:55:22 +00:00
gh-108267 Fix another dataclasses docs typo (#119277)
This commit is contained in:
parent
fe921931a3
commit
423bbcbbc4
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in a new issue