Dear #lazyweb, what is the best way you know to represent #tagged #enums in #Python? It needs to be at least somewhat type-checkable, although it's possible I might settle for something like enumerating each value's associated data type/tuple once again for mypy to see.
So far I've been using a hierarchy of frozen dataclasses and then a single-dispatch handler; however, now I have a possible use case with the need for validation, and the hierarchy of dataclasses is not discoverable, thus not, well, enumerable :)