back

by jasonpeacock·5y ago·view on hn ↗
Yeah...those are all not the use cases that Enums were intended/designed for.

Juse use Python's `dataclass` or similar (`pydantic` is great) and just build the custom data types that you need.