We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 488a62f commit a5009d8Copy full SHA for a5009d8
src/frequenz/client/microgrid/_util.py
@@ -41,9 +41,6 @@ class SomeEnum(enum.Enum):
41
The resulting python enum value if the protobuf value is known, otherwise
42
the input value converted to a plain `int`.
43
"""
44
- # A protobuf enum value is a NewType of int, so we make sure we have a pure int at
45
- # this point.
46
- value = int(value)
47
try:
48
return enum_type(value)
49
except ValueError:
0 commit comments