forked from pythonnet/pythonnet
- Notifications
You must be signed in to change notification settings - Fork 30
Closed
Description
Pythonnet Enum to Int causes FATAL Exception.
E.g.:
result[insight] =int(insight.direction) *percentWe need to use the following workaround:
defdirection_to_int(direction: InsightDirection) ->int: matchdirection: caseInsightDirection.UP: return1caseInsightDirection.DOWN: return-1case _: return0result[insight] =direction_to_int(insight.direction) *percentTo reproduce the issue, we need to make several int(Enum) calls.
Metadata
Metadata
Assignees
Labels
No labels