@@ -21,6 +21,11 @@ exclude = (?x)(
21
21
# *.extern modules that actually live in *._vendor will also cause attr-defined issues on import
22
22
disable_error_code = attr-defined
23
23
24
+ # - pkg_resources tests create modules that won't exists statically before the test is run.
25
+ # Let's ignore all "import-not-found" since, if an import really wasn't found, then the test would fail.
26
+ [mypy-pkg_resources.tests.*]
27
+ disable_error_code = import-not-found
28
+
24
29
# - Avoid raising issues when importing from "extern" modules, as those are added to path dynamically.
25
30
# https://github.com/pypa/setuptools/pull/3979#discussion_r1367968993
26
31
# - distutils._modified has different errors on Python 3.8 [import-untyped], on Python 3.9+ [import-not-found]
@@ -29,9 +34,7 @@ disable_error_code = attr-defined
29
34
[mypy-pkg_resources.extern.*,setuptools.extern.*,distutils._modified,jaraco.*,trove_classifiers]
30
35
ignore_missing_imports = True
31
36
32
- # - pkg_resources tests create modules that won't exists statically before the test is run.
33
- # Let's ignore all "import-not-found" since, if an import really wasn't found, then the test would fail.
34
37
# Even when excluding vendored/generated modules, there might be problems: https://github.com/python/mypy/issues/11936#issuecomment-1466764006
35
- [mypy-pkg_resources.tests.*, setuptools._vendor.packaging._manylinux,setuptools.config._validate_pyproject.*]
38
+ [mypy-setuptools._vendor.packaging._manylinux,setuptools.config._validate_pyproject.*]
36
39
follow_imports = silent
37
40
# silent => ignore errors when following imports
0 commit comments