Python Inmutable Dataclass
# truly immutable Python objects are not possible,
# but it's simulated by throwing an exception if you want to set fields
from dataclasses import dataclass
@dataclass(frozen=True)
class MyImmutableData:
immutable_field: str
Foolish Finch