-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Option "install-types" breaks project version dependencies. #17852
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
Comments
I don't think we have the machinery to figure out the necessary version of pandas. I'd recommend to use |
To add to what Jelle said, if you need to maintain some pinned dependencies, it’s safest to only install new dependencies using an installation method that knows about that. For example, by adding new dependencies to your project’s If for whatever reason that doesn’t work for your use case, here’s some notes for how to make
|
Yeah, I think this is unfortunately out of scope. Packaging is complicated and mypy shouldn't ever have gotten involved. Another fun note is that |
Thank you for your response. I will add the specified version stubs to my |
Uh oh!
There was an error while loading. Please reload this page.
Bug Report
When running mypy with the "install-types" option and the project includes pandas, the pandas-stubs package is installed into the project, causing the installation of the latest version of numpy (numpy 2.1.1). This breaks my project's dependency on numpy version 1.21.6.
To Reproduce
I have provided the minimum environment to reproduce the issue.
Environment
Running Command
Expected Behavior
The installation process should recognize the installed version of pandas and install the matching pandas-stubs package accordingly.
Actual Behavior
The installation process installs the latest version of pandas-stubs, which forces an update of numpy and breaks the project's dependencies.
The text was updated successfully, but these errors were encountered: