-
Notifications
You must be signed in to change notification settings - Fork 29k
[MINOR][PYTHON] Add scipy-stubs to dev/requirements.txt
#51366
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
Conversation
| flake8==3.9.0 | ||
| # See SPARK-38680. | ||
| pandas-stubs<1.2.0.54 | ||
| scipy-stubs; python_version>='3.10' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for making a PR, @jorenham .
May I ask why this is limited to Python 3.10+?
BTW, FYI, since Apache Spark 4.1.0 is going to drop Python 3.9, I believe we can remove this condition python_version>='3.10' later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @HyukjinKwon , @zhengruifeng , @xinrong-meng , @allisonwang-db from #51259
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May I ask why this is limited to Python 3.10+?
at the earliest, scipy-stubs supports scipy 1.14, which requires python >=3.10, as per SPEC 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM.
cc @peter-toth
HyukjinKwon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah it's fine to add if it's required during the dev setup
|
Merged to master. |
What changes were proposed in this pull request?
This adds scipy-stubs to the list of optional Python requirements.
Why are the changes needed?
For the same reason as pandas-stubs is already an optional requirement: To improve static typing support and IDE features (autocompletion, inline documentation, etc).
Does this PR introduce any user-facing change?
No.
How was this patch tested?
No need; there's no runtime impact :)
Was this patch authored or co-authored using generative AI tooling?
No.