-
Notifications
You must be signed in to change notification settings - Fork 227
Enum ChoiceType column results in error #196
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
Comments
Hi ! Is it really a bug ? The graphene documentation suggest to use source: https://docs.graphene-python.org/en/latest/types/enums/ |
Sure, but that defeats the automagical nature of using There's also the fact that using |
as things stand now, is it not possible to use is there a workaround ? |
Unfortunately I'm no longer on the project that was using this code, so I can't say. |
We were able to use a ChoiceType with graphene-sqlalchemy 2.3.0 under Python 3.8 but got this error when we upgraded to Python 3.9. I was able to figure out a fix for it by updating one line in the graphene-sqlalchemy library. If you like I can submit a PR and see if passes review and doesn't break anything else. |
@kurtwiersma if you're still up for that, feel free to go ahead. It's probably best to create a new branch for the old release. Would appreciate the effort! |
Howdy folks!
The following code produces
TypeError: 'MyEnum' object is not iterable
, but should work. Note that this is also involves packagesqlalchemy_utils
The text was updated successfully, but these errors were encountered: