Skip to content

TYP: Fixed missing typing information of set_printoptions#28270

Merged
jorenham merged 1 commit intonumpy:mainfrom
amotzop:add_missing_printoptions_typing
Feb 4, 2025
Merged

TYP: Fixed missing typing information of set_printoptions#28270
jorenham merged 1 commit intonumpy:mainfrom
amotzop:add_missing_printoptions_typing

Conversation

@amotzop
Copy link
Copy Markdown

@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

@github-actions
Copy link
Copy Markdown

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
Copy Markdown
Member

jorenham commented Feb 4, 2025

Thanks @amotzop!

The CI failures appear to be unrelated.

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