4 ms·
Dataclass is not immutable, for some cases typing.namedtuple should be preferred over dataclass if typing is needed. Deep dive here: https://stackoverflow.com/q
by faizshah 7y ago
Dataclass is not immutable, for some cases typing.namedtuple should be preferred over dataclass if typing is needed. Deep dive here: https://stackoverflow.com/questions/51671699/data-classes-vs-typing-namedtuple-primary-use-cases https://stackoverflow.com/questions/51671699/data-classes-vs...
- tasubotadas 7y agoThat's not really true - you can set frozen=True and you will get an immutable version of the class.