@@ -13,28 +13,20 @@ exclude = (?x)(
13
13
| ^setuptools/_distutils/ # Vendored
14
14
| ^setuptools/config/_validate_pyproject/ # Auto-generated
15
15
)
16
- disable_error_code =
17
- # TODO: Not all dependencies are typed. Namely: distutils._modified, wheel.wheelfile, and jaraco.*
18
- ; import-untyped,
19
- # Ignoring attr-defined because setuptools wraps a lot of distutils classes, adding new attributes,
20
- # w/o updating all the attributes and return types from the base classes for type-checkers to understand
21
- # Especially with setuptools.dist.command vs distutils.dist.command vs setuptools._distutils.dist.command
22
- # *.extern modules that actually live in *._vendor will also cause attr-defined issues on import
23
- attr-defined,
16
+ # Ignoring attr-defined because setuptools wraps a lot of distutils classes, adding new attributes,
17
+ # w/o updating all the attributes and return types from the base classes for type-checkers to understand
18
+ # Especially with setuptools.dist.command vs distutils.dist.command vs setuptools._distutils.dist.command
19
+ # *.extern modules that actually live in *._vendor will also cause attr-defined issues on import
20
+ disable_error_code = attr-defined
24
21
25
22
# Avoid raising issues when importing from "extern" modules, as those are added to path dynamically.
26
23
# https://github.com/pypa/setuptools/pull/3979#discussion_r1367968993
27
- [mypy-pkg_resources.extern.*,setuptools.extern.*]
24
+ # All jaraco modules are still untyped
25
+ [mypy-pkg_resources.extern.*,setuptools.extern.*,jaraco.*]
28
26
ignore_missing_imports = True
29
27
30
- ; [mypy-pkg_resources.tests.*,setuptools.tests.*]
31
- ; disable_error_code =
32
- ; # Tests include creating dynamic modules that won't exists statically before the test is run.
33
- ; # Let's ignore all "import-not-found", as if an import really wasn't found, then the test would fail.
34
- ; import-not-found,
35
- ; # Many untyped "jaraco" modules
36
- ; import-untyped,
37
-
38
- # Mypy issue, this vendored module is already excluded!
39
- [mypy-setuptools._vendor.packaging._manylinux]
28
+ # pkg_resources tests create modules that won't exists statically before the test is run.
29
+ # Let's ignore all "import-not-found" since, if an import really wasn't found, then the test would fail.
30
+ # setuptools._vendor.packaging._manylinux: Mypy issue, this vendored module is already excluded!
31
+ [mypy-pkg_resources.tests.*,setuptools._vendor.packaging._manylinux]
40
32
disable_error_code = import-not-found
0 commit comments