diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-07-10 14:57:08 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-07-10 14:58:35 +0200 |
commit | 4136c847fdece2a0752e3029872a41bc41b103a3 (patch) | |
tree | ec712c489ad8c2d7db8956807ac788d5fe2db565 | |
parent | 4a6387ee2303bf9d7077342783a519433d75db6a (diff) | |
download | qutebrowser-4136c847fdece2a0752e3029872a41bc41b103a3.tar.gz qutebrowser-4136c847fdece2a0752e3029872a41bc41b103a3.zip |
Make mypy happy
It doesn't know about QMessageLogContext.lineno being Optional[int] rather than
int.
-rw-r--r-- | qutebrowser/utils/log.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/utils/log.py b/qutebrowser/utils/log.py index 624c385ea..165e5143f 100644 --- a/qutebrowser/utils/log.py +++ b/qutebrowser/utils/log.py @@ -478,7 +478,7 @@ def qt_message_handler(msg_type: QtCore.QtMsgType, level = qt_to_logging[msg_type] if context.line is None: - lineno = -1 + lineno = -1 # type: ignore[unreachable] else: lineno = context.line |