aboutsummaryrefslogtreecommitdiff
path: root/.mypy.ini
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2023-11-26 01:03:08 -0500
committerXavier Claessens <xclaesse@gmail.com>2023-11-26 17:12:52 -0500
commitcaa38dad453905c968ecf1c021e2867f7f4a17e3 (patch)
treebd87db11f3b38ff02a005537a033ff4578744b4e /.mypy.ini
parent319b41b4c9c9d6d776828519b141fea1427fe89e (diff)
downloadmeson-caa38dad453905c968ecf1c021e2867f7f4a17e3.zip
meson-caa38dad453905c968ecf1c021e2867f7f4a17e3.tar.gz
meson-caa38dad453905c968ecf1c021e2867f7f4a17e3.tar.bz2
fix broken type annotation imports being ignored
If an annotation could not be resolved, it's classified as a "missing import" and our configuration ignored it: ``` Skipping analyzing "mesonbuild.backends": module is installed, but missing library stubs or py.typed marker ``` As far as mypy is concerned, this library may or may not exist, but it doesn't have any typing information at all (may need to be installed first). We ignored this because of our docs/ and tools/ thirdparty dependencies, but we really should not. It is trivial to install them, and then enforce that this "just works". By enforcing it, we also make sure typos get caught.
Diffstat (limited to '.mypy.ini')
-rw-r--r--.mypy.ini2
1 files changed, 1 insertions, 1 deletions
diff --git a/.mypy.ini b/.mypy.ini
index 70fdcd9..d00944b 100644
--- a/.mypy.ini
+++ b/.mypy.ini
@@ -2,7 +2,7 @@
strict_optional = False
show_error_context = False
show_column_numbers = True
-ignore_missing_imports = True
+ignore_missing_imports = False
implicit_reexport = False
follow_imports = silent