summaryrefslogtreecommitdiff
path: root/qutebrowser/utils/qtlog.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/utils/qtlog.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/utils/qtlog.py')
-rw-r--r--qutebrowser/utils/qtlog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/utils/qtlog.py b/qutebrowser/utils/qtlog.py
index 1de9181cf..78b48ebee 100644
--- a/qutebrowser/utils/qtlog.py
+++ b/qutebrowser/utils/qtlog.py
@@ -15,7 +15,7 @@ from typing import Iterator, Optional
from qutebrowser.qt import core as qtcore
from qutebrowser.utils import log
-_args = None
+_args: Optional[argparse.Namespace] = None
def init(args: argparse.Namespace) -> None: