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
{{ message }}
Repository navigation
TypeError when calling a method with an enum argument #935
calling a method that uses C# enum as an argument with the enum fails with TypeError: No method matches given arguments for XXX
The enum comes in Python as an int, and since the method signature is not int, it fails.
I cannot see how to force the typecast, or whether I could somehow force the method call directly (overloads lists the method, but I can't figure out whether I can call directly).
Searching google did not return anything recent, although some older comments (2017/18 IIRC) indicated there was a fix for this?
Activity
Cronan commentedon Aug 12, 2019
This kind of thing should work, I believe ...
vladt3 commentedon Aug 12, 2019
Thanks, it does indeed. Maybe there should be some FAQ that would cover things like these?
Cronan commentedon Aug 12, 2019
Thanks, that's a good idea