diff options
author | Florian Bruhin <me@the-compiler.org> | 2023-06-29 13:55:12 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2023-06-29 21:10:01 +0200 |
commit | cca08369be07698630706a3d7ade135a98f239f8 (patch) | |
tree | 69e7026e713be8f196d5ca6c25eadadae080e90d /.mypy.ini | |
parent | 53d67e2c39c40e52019503ab85efabd2981e5835 (diff) | |
download | qutebrowser-cca08369be07698630706a3d7ade135a98f239f8.tar.gz qutebrowser-cca08369be07698630706a3d7ade135a98f239f8.zip |
qt6 mypy: Disable warn-unused-ignores
The ignores needed between Qt 5 and Qt 6 differ.
We could buy into e.g. only Qt 6 linting, but apparently e.g. VS Code
also shows more errors when removing the Qt 5 type ignores.
Instead, disable this for now. We might want to re-enable it when we see
a major change in the mypy changelog and filter the results manually.
81 -> 50 errors
Diffstat (limited to '.mypy.ini')
-rw-r--r-- | .mypy.ini | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -11,7 +11,9 @@ disallow_incomplete_defs = True check_untyped_defs = True disallow_untyped_decorators = True warn_redundant_casts = True -warn_unused_ignores = True +## can't use warn_unused_ignores because of different Qt5/Qt6 ignores. +## FIXME:v4 (lint) reenable when dropping Qt 5 +# warn_unused_ignores = True # warn_return_any = True # no_implicit_reexport = True strict_equality = True |