diff options
author | Florian Bruhin <me@the-compiler.org> | 2024-03-25 12:15:03 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2024-03-25 12:15:03 +0100 |
commit | 01f4807eaf8d20dcc3802cd2febf9432568f3935 (patch) | |
tree | 7c7f3599124e6943bce9c24577b989639c942380 /qutebrowser/utils/log.py | |
parent | 52c83cf4851650eb86d094e03365592b4f668982 (diff) | |
download | qutebrowser-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/log.py')
-rw-r--r-- | qutebrowser/utils/log.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qutebrowser/utils/log.py b/qutebrowser/utils/log.py index 3e3b407b0..9695ec5a2 100644 --- a/qutebrowser/utils/log.py +++ b/qutebrowser/utils/log.py @@ -31,7 +31,7 @@ if TYPE_CHECKING: from qutebrowser.config import config as configmodule _log_inited = False -_args = None +_args: Optional[argparse.Namespace] = None COLORS = ['black', 'red', 'green', 'yellow', 'blue', 'purple', 'cyan', 'white'] COLOR_ESCAPES = {color: '\033[{}m'.format(i) @@ -146,7 +146,7 @@ LOGGER_NAMES = [ ram_handler: Optional['RAMHandler'] = None console_handler: Optional[logging.Handler] = None -console_filter = None +console_filter: Optional["LogFilter"] = None def stub(suffix: str = '') -> None: |