[issue43430] Exception raised when attempting to create Enum via functional API
Ethan Furman
report at bugs.python.org
Sun Apr 11 11:03:27 EDT 2021
Ethan Furman <ethan at stoneleaf.us> added the comment:
Looking at your example I see that you are using an enum as the `type` parameter -- the purpose of `type` is to provide a mixin data type, such as `int` or `str`, not another enum.
What is your use-case? Typically, subclassing EnumMeta is not needed.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43430>
_______________________________________
More information about the Python-bugs-list
mailing list