-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge changes from skeleton #4296
Conversation
#4257 shows that mypy now works with PyPy
Probably should have done this when moving continue-on-error to Python 3.13.
Tests are failing with this mypy error:
|
Those errors don't happen on main, but I don't know why. |
I can replicate the errors locally by running mypy manually, but there's no difference between the branch and main:
|
Moreover, mypy config explicitly excludes the erroring file: Lines 9 to 17 in 6ee23bf
What the heck? |
There is literally nothing about this change that should affect mypy. I thought I'd found a patch that would work around the issue. I made this change: diff --git a/mypy.ini b/mypy.ini
index 90c8ff13e..30fc1da2d 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -25,7 +25,8 @@ disable_error_code = attr-defined
# https://github.com/pypa/setuptools/pull/3979#discussion_r1367968993
# - distutils._modified has different errors on Python 3.8 [import-untyped], on Python 3.9+ [import-not-found]
# - All jaraco modules are still untyped
-[mypy-pkg_resources.extern.*,setuptools.extern.*,distutils._modified,jaraco.*]
+# - _validate_project starts complaining about trove_classifiers
+[mypy-pkg_resources.extern.*,setuptools.extern.*,distutils._modified,jaraco.*,trove_classifiers]
ignore_missing_imports = True
# - pkg_resources tests create modules that won't exists statically before the test is run. and the mypy tests stopped failing. Then I stashed the change and the tests continue to pass. I can't get the failure to happen reliably. I thought maybe the issue was pytest==8.1.1 vs pytest==8.0.2, but that doesn't seem to be a factor. |
I've figured out that removing I really don't understand why |
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 #4296.
pypa#4296 broke `ruff.toml`, by adding a second `extend-select` section. Merge them to fix ruff checking.
No description provided.