diff options
author | Florian Bruhin <me@the-compiler.org> | 2022-09-16 14:58:46 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2022-09-16 15:00:19 +0200 |
commit | 5e11e6c7d413cf5c77056ba871a545aae1cfd66a (patch) | |
tree | 29c0943ca57533d13d70d93a3b6999da82b8e127 | |
parent | 816415707274e1a3757a6c5cada6b38de3cc43c3 (diff) | |
download | qutebrowser-5e11e6c7d413cf5c77056ba871a545aae1cfd66a.tar.gz qutebrowser-5e11e6c7d413cf5c77056ba871a545aae1cfd66a.zip |
mypy: Remove unneeded int(...)
Follow-up to 377bdf736f96605b998ca6f2ea2b062e190653b0 - less confusing
that way IMHO, as the value now is already an int in that branch.
-rw-r--r-- | qutebrowser/utils/qtutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/utils/qtutils.py b/qutebrowser/utils/qtutils.py index 699dc86d9..0ecc4cba6 100644 --- a/qutebrowser/utils/qtutils.py +++ b/qutebrowser/utils/qtutils.py @@ -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 |