Skip to content

TYP: fill in some of the missing annotations in the stubs #29058

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 3 commits into from
May 27, 2025

Conversation

jorenham
Copy link
Member

This should help increase the type coverage.

cc @MarcoGorelli

Copy link

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

pandas (https://github.com/pandas-dev/pandas)
+ pandas/_typing.py:86: error: Variable "numpy.typing._ArrayLikeInt_co" is not valid as a type  [valid-type]
+ pandas/_typing.py:86: note: Error code "valid-type" not covered by "type: ignore" comment
+ pandas/_typing.py:86: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases

@jorenham
Copy link
Member Author

the mypy_primer errors are caused by pandas-dev/pandas#61387

@charris charris merged commit f1e7527 into numpy:main May 27, 2025
77 checks passed
@charris
Copy link
Member

charris commented May 27, 2025

Thanks Joren.

@jorenham jorenham deleted the typing/missing-annotations branch May 27, 2025 17:39
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.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy