diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-03-18 15:24:58 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-03-18 15:33:45 +0100 |
commit | c158cafe3395e130946cb192247e544251da8601 (patch) | |
tree | ef67df64cf200b33d25875fbc0e4af498a1378bc /qutebrowser/commands/runners.py | |
parent | 3d1f975391ef61a43490e93b4ce0c54fdd5c22ab (diff) | |
download | qutebrowser-c158cafe3395e130946cb192247e544251da8601.tar.gz qutebrowser-c158cafe3395e130946cb192247e544251da8601.zip |
Fix lintdev-split-parser
As for the mypy unreachable warning, see:
See https://github.com/python/mypy/issues/7214
and https://github.com/python/mypy/issues/8766
Includes cherry-pick of 27ad47825279a39141efd11ec9cc54ff2a872517
Diffstat (limited to 'qutebrowser/commands/runners.py')
-rw-r--r-- | qutebrowser/commands/runners.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/qutebrowser/commands/runners.py b/qutebrowser/commands/runners.py index 7386d7d3b..5fb054455 100644 --- a/qutebrowser/commands/runners.py +++ b/qutebrowser/commands/runners.py @@ -22,13 +22,11 @@ import traceback import re import contextlib -from typing import (TYPE_CHECKING, Callable, Dict, Iterator, Mapping, MutableMapping, - List, Optional) +from typing import TYPE_CHECKING, Callable, Dict, Iterator, Mapping, MutableMapping from PyQt5.QtCore import pyqtSlot, QUrl, QObject from qutebrowser.api import cmdutils -from qutebrowser.config import config from qutebrowser.commands import cmdexc, parser from qutebrowser.utils import message, objreg, qtutils, usertypes, utils from qutebrowser.keyinput import macros, modeman @@ -175,7 +173,7 @@ class CommandRunner(AbstractCommandRunner): parsed = self._parser.parse_all(text) if parsed is None: - return + return # type: ignore[unreachable] for result in parsed: with self._handle_error(safely): |