Skip to content

uamethod unable to recognize Enumerator type #1291

Answered by schroeder-
danmoser asked this question in Q&A
Discussion options

You must be logged in to vote

A after a bit of digging i would recommend to cast the parameter like this:

@uamethod
def multiply(parent, x):
    x = ua.myEnum(x)
    print("method call with parameter: ", x, type(x))
    return

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@danmoser
Comment options

Answer selected by danmoser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants