5
5
strict = False
6
6
7
7
# 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
9
9
warn_redundant_casts = True
10
10
enable_error_code = ignore-without-code
11
11
@@ -18,6 +18,9 @@ disable_error_code =
18
18
19
19
# # local
20
20
21
+ # Use our custom stubs for distutils
22
+ mypy_path = $MYPY_CONFIG_FILE_DIR/typings
23
+
21
24
# CI should test for all versions, local development gets hints for oldest supported
22
25
# But our testing setup doesn't allow passing CLI arguments, so local devs have to set this manually.
23
26
# python_version = 3.9
@@ -48,17 +51,10 @@ disable_error_code =
48
51
[mypy-pkg_resources.tests.*]
49
52
disable_error_code = import-not-found
50
53
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
-
59
54
# - wheel: does not intend on exposing a programmatic API https://github.com/pypa/wheel/pull/610#issuecomment-2081687671
60
55
[mypy-wheel.*]
61
56
ignore_missing_imports = True
57
+
62
58
# - The following are not marked as py.typed:
63
59
# - jaraco: Since mypy 1.12, the root name of the untyped namespace package gets called-out too
64
60
# - jaraco.develop: https://github.com/jaraco/jaraco.develop/issues/22
0 commit comments