summaryrefslogtreecommitdiff
path: root/qutebrowser/qt/machinery.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/qt/machinery.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/qt/machinery.py')
-rw-r--r--qutebrowser/qt/machinery.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qutebrowser/qt/machinery.py b/qutebrowser/qt/machinery.py
index 616c7ccfc..f9e3721f8 100644
--- a/qutebrowser/qt/machinery.py
+++ b/qutebrowser/qt/machinery.py
@@ -34,7 +34,7 @@ from qutebrowser.utils import log
# sed -i 's/_WRAPPER_OVERRIDE = .*/_WRAPPER_OVERRIDE = "PyQt6"/' qutebrowser/qt/machinery.py
#
# Users: Set the QUTE_QT_WRAPPER environment variable to change the default wrapper.
-_WRAPPER_OVERRIDE = None
+_WRAPPER_OVERRIDE = None # type: ignore[var-annotated]
WRAPPERS = [
"PyQt6",
@@ -190,7 +190,7 @@ def _select_wrapper(args: Optional[argparse.Namespace]) -> SelectionInfo:
return SelectionInfo(wrapper=env_wrapper, reason=SelectionReason.env)
if _WRAPPER_OVERRIDE is not None:
- assert _WRAPPER_OVERRIDE in WRAPPERS # type: ignore[unreachable]
+ assert _WRAPPER_OVERRIDE in WRAPPERS
return SelectionInfo(wrapper=_WRAPPER_OVERRIDE, reason=SelectionReason.override)
return _autoselect_wrapper()