You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a workaround? I need to use an API that, per .pyi file, expects an enum type, but I am only given an integer value. Is it possible to convert the int value to an instance of the Thrift-generated enum type? Thanks!
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: