Traceback (most recent call last):
File "./prog.py", line 17, in <module>
File "/usr/lib/python3.12/enum.py", line 1082, in <module>
class Enum(metaclass=EnumType):
File "./prog.py", line 12, in build_class
File "/usr/lib/python3.12/enum.py", line 521, in __prepare__
member_type, first_enum = metacls._get_mixins_(cls, bases)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/enum.py", line 981, 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)`
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 228, in partial_apport_excepthook
return apport_excepthook(binary, exc_type, exc_obj, exc_tb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 56, in apport_excepthook
if not enabled():
^^^^^^^^^
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 24, in enabled
import re
File "/usr/lib/python3.12/re/__init__.py", line 124, in <module>
import enum
File "/usr/lib/python3.12/enum.py", line 1082, in <module>
class Enum(metaclass=EnumType):
File "./prog.py", line 12, in build_class
File "/usr/lib/python3.12/enum.py", line 521, in __prepare__
member_type, first_enum = metacls._get_mixins_(cls, bases)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/enum.py", line 981, 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)`
Original exception was:
Traceback (most recent call last):
File "./prog.py", line 17, in <module>
File "/usr/lib/python3.12/enum.py", line 1082, in <module>
class Enum(metaclass=EnumType):
File "./prog.py", line 12, in build_class
File "/usr/lib/python3.12/enum.py", line 521, in __prepare__
member_type, first_enum = metacls._get_mixins_(cls, bases)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/enum.py", line 981, 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)`