Skip to content

🐞 Custom enums broken in construct-typing 0.5.4 #111

@ttaschke

Description

@ttaschke

Describe the issue

Running tox for testing results in the following TypeError being thrown in _VSTPluginEventID:

py39: commands[0]> coverage run -m pytest
ImportError while loading conftest '/python_project/pyflp/tests/conftest.py'.
tests/conftest.py:8: in <module>
    import pyflp
pyflp/__init__.py:58: in <module>
    from .plugin import PluginID, get_event_by_internal_name
pyflp/plugin.py:204: in <module>
    class _VSTPluginEventID(ct.EnumBase):
/usr/lib/python3.9/enum.py:273: in __new__
    enum_member.__init__(*args)
E   TypeError: __init__() takes 2 positional arguments but 3 were given

This bug was introduced by the automatic merge #110 (Note: Maybe it would be safer to have a human check these kind of updates before merging?) and seems to be caused by the following change in construct-typing:
timrid/construct-typing@916349f#diff-6f0a7161c5863ec910bbe7e7a9d960e28d1edba2653cef2bac7fe967082a42c2R51-R55

What version of PyFLP are you using?

Newest master branch version

What code caused this issue?

Running tox

Screenshots, Additional info

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions