What does @dataclass(frozen=True) do in Python?
Correct answer
C. Makes instances immutable
7 views
C. Makes instances immutable
7 views
Assigning to fields of a frozen dataclass raises FrozenInstanceError.
Asked in: Python Interview OOP
https://docs.python.org/3/tutorial/classes.htmlNot sure why the answer is C? Ask here and get an explanation.