Skip to content

Commit af38e1c

Browse files
committed
🧎‍♀️ Genuflect to the types.
Under some circumstances not fully understood, mypy has started complaining when `_validate_project` tries to import `trove_classifiers` (and it doesn't exist), even though `_validate_project` is excluded from mypy checks. Mysteriously, adding `trove_classifiers` itself to the list of modules for which to ignore imports suppresses this mysterious failure. Ref pypa#4296.
1 parent 615e7d9 commit af38e1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypy.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ disable_error_code = attr-defined
2525
# https://github.com/pypa/setuptools/pull/3979#discussion_r1367968993
2626
# - distutils._modified has different errors on Python 3.8 [import-untyped], on Python 3.9+ [import-not-found]
2727
# - All jaraco modules are still untyped
28-
[mypy-pkg_resources.extern.*,setuptools.extern.*,distutils._modified,jaraco.*]
28+
# - _validate_project sometimes complains about trove_classifiers (#4296)
29+
[mypy-pkg_resources.extern.*,setuptools.extern.*,distutils._modified,jaraco.*,trove_classifiers]
2930
ignore_missing_imports = True
3031

3132
# - pkg_resources tests create modules that won't exists statically before the test is run.

0 commit comments

Comments
 (0)