Skip to content

TYP: Fixed missing typing information of set_printoptions #28270

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

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

amotzop
Copy link

@amotzop amotzop commented Feb 4, 2025

Added the "1.25" and "2.1" legacy options to set_printoptions typing information.
This is already documented and supported in the actual functions, just the type-stubs information was missing

Copy link

github-actions bot commented Feb 4, 2025

Diff from mypy_primer, showing the effect of this PR on type check results on a corpus of open source code:

spark (https://github.com/apache/spark)
+ python/pyspark/core/rdd.py:5383: error: Unused "type: ignore" comment  [unused-ignore]
+ python/pyspark/pandas/indexing.py:1853: error: Unused "type: ignore" comment  [unused-ignore]
+ python/pyspark/pandas/namespace.py:3850: error: Unused "type: ignore" comment  [unused-ignore]
+ python/pyspark/pandas/indexes/base.py:2656: error: Unused "type: ignore" comment  [unused-ignore]

@jorenham jorenham added the 09 - Backport-Candidate PRs tagged should be backported label Feb 4, 2025
@jorenham jorenham added this to the 2.2.3 release milestone Feb 4, 2025
@jorenham
Copy link
Member

jorenham commented Feb 4, 2025

Thanks @amotzop!

The CI failures appear to be unrelated.

@jorenham jorenham merged commit 18bf704 into numpy:main Feb 4, 2025
68 of 70 checks passed
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants