mypy: Remove unneeded int(...)
Follow-up to 377bdf736f - less confusing
that way IMHO, as the value now is already an int in that branch.
This commit is contained in:
parent
8164157072
commit
5e11e6c7d4
|
|
@ -611,4 +611,4 @@ def extract_enum_val(val: Union[sip.simplewrapper, int, enum.Enum]) -> int:
|
|||
return val.value
|
||||
elif isinstance(val, sip.simplewrapper):
|
||||
return int(val) # type: ignore[call-overload]
|
||||
return int(val)
|
||||
return val
|
||||
|
|
|
|||
Loading…
Reference in New Issue