Hacker News new | ask | show | jobs
by LtWorf 4 days ago
You can use anything immutable like a string, a number, a tuple of immutables, a frozendict, any dataclass with frozen=True, and so on.

No need to do the annoying if x is None.