-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Closed
Labels
Description
Documentation
The documentation of the dataclass frozen
argument:
cpython/Doc/library/dataclasses.rst
Lines 163 to 166 in 0c8fecc
- *frozen*: If true (the default is ``False``), assigning to fields will | |
generate an exception. This emulates read-only frozen instances. If | |
:meth:`~object.__setattr__` or :meth:`~object.__delattr__` is defined in the class, then | |
:exc:`TypeError` is raised. See the discussion below. |
mentions:
See the discussion below.
But I can't find any discussion related to this in the documentation. Seems like this was introduced in the initial version of the documentation from #6886.
Linked PRs
Metadata
Metadata
Assignees
Labels
Projects
Status
Todo