-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
types-openssl-python does not contain stubs? #5593
Comments
The stubs for that library appear to be Python 2-only (https://github.com/python/typeshed/blob/master/stubs/openssl-python/METADATA.toml). Are you running on Python 3? If that's the issue, mypy shouldn't suggest installing them on Python 3. |
Yes, I have tried py 3.8 and 3.9. |
This also affects |
There's arguably two bugs here, one in mypy and one in typeshed:
|
I believe that the wheel needs to be Python 3 compatible so that type checkers written in Python 3 (such as mypy) can use it easily, without needing a Python 2 virtual environment. We ship a metadata toml file along with the wheel that indicates whether the stubs are compatible with Python 2/3. I agree that mypy should understand which stubs are only Python 2/3 compatible. |
It doesn't sound like there's anything actionable for typeshed here (and if there were, it sounds to me like it would need to be addressed over at the https://github.com/typeshed-internal/stub_uploader repo). |
Running mypy --install-types on a project containing
import OpenSSL.crypto
suggests installingtypes-openssl-python
but installing this package does not resolve the issue.Ona repeated run, I still get the following error and hint.
The text was updated successfully, but these errors were encountered: