-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Python <3.11 does not have the enum.EnumType metaclass #3
Comments
One could add it to the |
Doh! Thanks, @stefanches7. I'd be for supporting 3.10+ but we'll need to do something a bit smarter here. Do you know off-hand? |
I was thinking in the direction of inherting from |
Off-hand it sounds fine. |
Tested locally. My educated guess is that the metaclasses have a different class structure interface. |
One possibility maybe is to just use
|
Evidence: https://docs.python.org/3.10/library/enum.html#data-types vs. https://docs.python.org/3.11/library/enum.html#data-types
Ran on Python 3.10:
Running in the same environment with Python 3.12 solves this.
The text was updated successfully, but these errors were encountered: