-
Notifications
You must be signed in to change notification settings - Fork 89
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
Add enum constructor to create enum from value #111
Labels
enhancement
New feature or request
Comments
Yes, I think it is better to have the same behavior as https://docs.python.org/3/library/enum.html |
Is there a workaround? I need to use an API that, per |
+1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thought we have a thrift file:
It's common to create a enum from it's value like this:
For now, the enum type do not accept any constructor parameters, can we add it like above, or generated a public api to do this convert?
The text was updated successfully, but these errors were encountered: