Skip to content

Add scipy-stubs as dev dependency #3859

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

jorenham
Copy link

I noticed that pandas-stubs was already in the list, so I figured that you might also be interested in scipy-stubs :)

@mwaskom
Copy link
Owner

mwaskom commented Jul 6, 2025

Looks like you need to limit it to 3.11+ per the distribution requirements: https://github.com/scipy/scipy-stubs/blob/907fff919bfee5a2302dd7a99e7c346d33f7a935/pyproject.toml#L32

@jorenham
Copy link
Author

jorenham commented Jul 6, 2025

Looks like you need to limit it to 3.11+ per the distribution requirements: scipy/scipy-stubs@907fff9/pyproject.toml#L32

That's only if you use scipy==1.16.*, because earlier versions of scipy-stubs, such as 1.14.1.6, have Python 3.10. The logic behind this, is thatscipy-stubs==X.Y.Z.* targets scipy==X.Y.Z, and therefore matches its python restrictions. And in the recent 1.16 scipy release, support for python 3.10 was dropped.

@jorenham
Copy link
Author

jorenham commented Jul 6, 2025

But that being said, I've restricted the scipy-stubs requirement to python>=3.10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants