diff options
author | Florian Bruhin <me@the-compiler.org> | 2022-09-16 14:47:15 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2022-09-16 15:00:19 +0200 |
commit | 77facc80013b942cc80fd6525268792809ccb1fa (patch) | |
tree | ddf8039c2e9393b62891442ae8321b30224bd110 | |
parent | 2d4fe870759c1956f9558022d6cd43662ac8bb3a (diff) | |
download | qutebrowser-77facc80013b942cc80fd6525268792809ccb1fa.tar.gz qutebrowser-77facc80013b942cc80fd6525268792809ccb1fa.zip |
mypy: Use Union instead of ignore
-rw-r--r-- | qutebrowser/keyinput/keyutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qutebrowser/keyinput/keyutils.py b/qutebrowser/keyinput/keyutils.py index f6969d627..87a9d7ae9 100644 --- a/qutebrowser/keyinput/keyutils.py +++ b/qutebrowser/keyinput/keyutils.py @@ -68,11 +68,11 @@ _MODIFIER_MAP = { } try: - _NIL_KEY = Qt.Key(0) + _NIL_KEY: Union[Qt.Key, int] = Qt.Key(0) except ValueError: # WORKAROUND for # https://www.riverbankcomputing.com/pipermail/pyqt/2022-April/044607.html - _NIL_KEY = 0 # type: ignore[assignment] + _NIL_KEY = 0 _ModifierType = Qt.KeyboardModifier if machinery.IS_QT6: |