James Kingston Clarke

TIL In Python `@dataclass(frozen=True): ...` gives you a safe hash function

Using @dataclass(frozen=True) provides you with a safe hash function out the box, because Python knows the fields won’t change.

References