Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: new enumerations must be created as ClassName([mixin_type,] enumtype) #12

Open
max-the-mage opened this issue Jul 8, 2018 · 1 comment

Comments

@max-the-mage
Copy link

max-the-mage commented Jul 8, 2018

Full stacktrace:

>>> from cue_sdk import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\retro\AppData\Local\Programs\Python\Python36-32\lib\site-packages\cue_sdk\__init__.py", line 1, in <module>
    from .api import *
  File "C:\Users\retro\AppData\Local\Programs\Python\Python36-32\lib\site-packages\cue_sdk\api.py", line 7, in <module>
    from .enumerations import *
  File "C:\Users\retro\AppData\Local\Programs\Python\Python36-32\lib\site-packages\cue_sdk\enumerations.py", line 45, in <module>
    class CLK(with_metaclass(KeywordMeta, CEnum)):
  File "C:\Users\retro\AppData\Local\Programs\Python\Python36-32\lib\enum.py", line 119, in __prepare__
    member_type, first_enum = metacls._get_mixins_(bases)
  File "C:\Users\retro\AppData\Local\Programs\Python\Python36-32\lib\enum.py", line 439, in _get_mixins_
    raise TypeError("new enumerations must be created as "
TypeError: new enumerations must be created as `ClassName([mixin_type,] enum_type)`
@ghost
Copy link

ghost commented Nov 29, 2018

Per #9 (comment)

Replace with

class CLK(CEnum, metaclass=KeywordMeta):
and
class CDC(CEnum, metaclass=KeywordMeta):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant