scratchattach
scratchattach copied to clipboard
[Bug]: Enum inheritance error ?? [Python 3.11]
scratchattach version
2.1.13 (local fork)
What happened?
so uhhh there was a recent pull request to add an enum for ranks and i think it broke the whole entire package
Your code.
import scratchattach as sa
Traceback
Traceback (most recent call last):
File "/home/cybersteve547/projects/scratchattach/test.py", line 1, in <module>
import scratchattach as sa
File "/home/cybersteve547/projects/scratchattach/scratchattach/__init__.py", line 29, in <module>
from . import editor
File "/home/cybersteve547/projects/scratchattach/scratchattach/editor/__init__.py", line 5, in <module>
from .asset import Asset, Costume, Sound
File "/home/cybersteve547/projects/scratchattach/scratchattach/editor/asset.py", line 7, in <module>
from . import base, commons, sprite, build_defaulting
File "/home/cybersteve547/projects/scratchattach/scratchattach/editor/base.py", line 19, in <module>
from . import build_defaulting
File "/home/cybersteve547/projects/scratchattach/scratchattach/editor/build_defaulting.py", line 13, in <module>
class _SetSprite(commons.Singleton):
File "/usr/lib/python3.11/enum.py", line 481, in __prepare__
member_type, first_enum = metacls._get_mixins_(cls, bases)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/enum.py", line 962, 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)`