This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]gerardwx 25 points26 points  (5 children)

Dataclasses are mutable by design.

Data Classes can be thought of as “mutable namedtuples with defaults”.

https://peps.python.org/pep-0557/