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
In Python, it should be possible to refer to enum members: MyEnum.Member, and to create arbitrary enum values from int explicitly like this: MyEnum(42). But by default a number and a value of some enum should not be freely convertible to each other. E.g. this should fail:
voidMethod(MyEnumvalue)=> ...;
Python:
Method(42); # <- this should be a TypeError
We can add a generic enum codec, that could be enabled on demand to restore old behavior.