-
Notifications
You must be signed in to change notification settings - Fork 2
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
Pip install fails #1
Pip install fails #1
Comments
This is because, according to the |
I am using pika for Python 3.6 and while coding in PyCharm, it keeps giving me popup to install pika-stubs to "make code insight better", but I can't, since it's for 3.8+. |
@blem14 this is exactly the problem I was having and why I opened this issue. |
Since this issue is frozen for a couple of months, I took the liberty of doing something: https://github.com/caian-org/pika-stubs MyPy is very strict on the package name: for a package named X, it will only accept a stub called "X-stubs". Since @JonnoFTW @blem14 @velovix take a look and see if this helps. |
Mypy supports new Python features in stubs even when running on older Python versions. And at runtime, by definition, type stubs are not used or even imported at all. So there should be no reason not to relax this restriction. @caiertl Have you considered opening a pull request? |
Mypy supports new Python features in stubs even when running on older Python versions. And at runtime, by definition, type stubs are not used or even imported at all. So there is no reason to restrict the Python version. Fixes hahow#1. Signed-off-by: Anders Kaseorg <[email protected]>
Mypy supports new Python features in stubs even when running on older Python versions. And at runtime, by definition, type stubs are not used or even imported at all. So there is no reason to restrict the Python version. Fixes hahow#1. Signed-off-by: Anders Kaseorg <[email protected]>
I have:
Running
Fails with the following error:
The text was updated successfully, but these errors were encountered: