summaryrefslogtreecommitdiff
path: root/qutebrowser/commands/runners.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2024-03-25 12:15:03 +0100
committerFlorian Bruhin <me@the-compiler.org>2024-03-25 12:15:03 +0100
commit01f4807eaf8d20dcc3802cd2febf9432568f3935 (patch)
tree7c7f3599124e6943bce9c24577b989639c942380 /qutebrowser/commands/runners.py
parent52c83cf4851650eb86d094e03365592b4f668982 (diff)
downloadqutebrowser-01f4807eaf8d20dcc3802cd2febf9432568f3935.tar.gz
qutebrowser-01f4807eaf8d20dcc3802cd2febf9432568f3935.zip
mypy: Set local_partial_types = True
This is going to be default behavior in mypy 2.0, see: - #8123 - https://mypy-lang.blogspot.com/2024/03/mypy-19-released.html - https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-local-partial-types
Diffstat (limited to 'qutebrowser/commands/runners.py')
-rw-r--r--qutebrowser/commands/runners.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qutebrowser/commands/runners.py b/qutebrowser/commands/runners.py
index 1ad563c5d..0d63d0021 100644
--- a/qutebrowser/commands/runners.py
+++ b/qutebrowser/commands/runners.py
@@ -7,7 +7,7 @@
import traceback
import re
import contextlib
-from typing import TYPE_CHECKING, Callable, Dict, Iterator, Mapping, MutableMapping
+from typing import TYPE_CHECKING, Callable, Dict, Tuple, Iterator, Mapping, MutableMapping
from qutebrowser.qt.core import pyqtSlot, QUrl, QObject
@@ -21,7 +21,7 @@ if TYPE_CHECKING:
_ReplacementFunction = Callable[['tabbedbrowser.TabbedBrowser'], str]
-last_command = {}
+last_command: Dict[usertypes.KeyMode, Tuple[str, int]] = {}
def _url(tabbed_browser):