summaryrefslogtreecommitdiff
path: root/.mypy.ini
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 /.mypy.ini
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 '.mypy.ini')
-rw-r--r--.mypy.ini3
1 files changed, 3 insertions, 0 deletions
diff --git a/.mypy.ini b/.mypy.ini
index ef34dbada..e987da336 100644
--- a/.mypy.ini
+++ b/.mypy.ini
@@ -29,6 +29,9 @@ pretty = True
### FIXME:v4 get rid of this
no_implicit_optional = False
+### Future default behavior
+local_partial_types = True
+
[mypy-hunter]
# https://github.com/ionelmc/python-hunter/issues/43
ignore_missing_imports = True