enum-properties
enum-properties copied to clipboard
Add properties and method specializations to Python enumeration values with a simple declarative syntax.
The typing in this package is extremely dynamic so its unclear if the current state of static type checking in python is worth the trouble - but once it is...
I.e. if and how exactly are strings normalized? NKCD? https://tonsky.me/blog/unicode/
Is this possible?
Symmetricity is rolled from scratch but as of 3.11 EnumType has builtin value alias support. If its possible we should probably use this builtin feature to support symmetric values. https://docs.python.org/3/library/enum.html#enum.EnumType._add_value_alias_
Python 3.14 lazily loads type annotations. We force load them during ``__new__`` in the metaclass - but they are unavailable earlier on between ``__prepare__`` and ``__new__``. Prior versions create the...