>>> classStrEnum(Enum,str): ... pass ... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/enum.py", line 172, in __prepare__ member_type, first_enum = metacls._get_mixins_(cls, bases) File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/enum.py", line 587, in _get_mixins_ raise TypeError("new enumerations should be created as " TypeError: new enumerations should be created as `EnumName([mixin_type, ...] [data_type,] enum_type)`