55strict = False
66
77# Early opt-in even when strict = False
8- # warn_unused_ignores = True # Disabled until we have distutils stubs for Python 3.12+
8+ warn_unused_ignores = True
99warn_redundant_casts = True
1010enable_error_code = ignore-without-code
1111
@@ -18,6 +18,9 @@ disable_error_code =
1818
1919# # local
2020
21+ # Use our custom stubs for distutils
22+ mypy_path = $MYPY_CONFIG_FILE_DIR/typings
23+
2124# CI should test for all versions, local development gets hints for oldest supported
2225# But our testing setup doesn't allow passing CLI arguments, so local devs have to set this manually.
2326# python_version = 3.9
@@ -48,17 +51,10 @@ disable_error_code =
4851[mypy-pkg_resources.tests.*]
4952disable_error_code = import-not-found
5053
51- # - distutils doesn't exist on Python 3.12, unfortunately, this means typing
52- # will be missing for subclasses of distutils on Python 3.12 until either:
53- # - support for `SETUPTOOLS_USE_DISTUTILS=stdlib` is dropped (#3625)
54- # for setuptools to import `_distutils` directly
55- # - or non-stdlib distutils typings are exposed
56- [mypy-distutils.*]
57- ignore_missing_imports = True
58-
5954# - wheel: does not intend on exposing a programmatic API https://github.com/pypa/wheel/pull/610#issuecomment-2081687671
6055[mypy-wheel.*]
6156ignore_missing_imports = True
57+
6258# - The following are not marked as py.typed:
6359# - jaraco: Since mypy 1.12, the root name of the untyped namespace package gets called-out too
6460# - jaraco.develop: https://github.com/jaraco/jaraco.develop/issues/22
0 commit comments