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:
Florian Bruhin 2022-09-16 14:58:46 +02:00
parent 8164157072
commit 5e11e6c7d4
1 changed files with 1 additions and 1 deletions

View File

@ -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