-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
--install-types
suggests incompatible stub packages
#10602
Labels
bug
mypy got something wrong
Comments
I'm working on a fix. I'll add Python version compatibility metadata for all the stub packages that mypy suggests. |
JukkaL
added a commit
that referenced
this issue
Jun 10, 2021
Keep track of supported Python versions of legacy bundled packages, and only suggest a stub package if the major Python version is compatible. Fixes #10602.
JukkaL
added a commit
that referenced
this issue
Jun 10, 2021
Keep track of supported Python versions of legacy bundled packages, and only suggest a stub package if the major Python version is compatible. Fixes #10602.
The fix to this issue was released in mypy 0.902. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Running
mypy --install-types
suggest installation of stubs that are ot compatible with the current running version of python.To Reproduce
(Write your steps here:)
import OpenSSL.crypto
mypy --install-types
Expected Behavior
Does not suggest installing library stubs incompatible with python version.
Actual Behavior
Suggests (and installs) stubs incompatible with the current version.
Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: