Skip to content

TYP: Fix invalid inline annotations in lib._function_base_impl #29175

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
Jun 11, 2025

Conversation

jorenham
Copy link
Member

_ : np.array is not a valid type annotations, because np.array is a function, and not a type expression.

@jorenham jorenham added 41 - Static typing 09 - Backport-Candidate PRs tagged should be backported and removed 09 - Backport-Candidate PRs tagged should be backported labels Jun 11, 2025
@jorenham
Copy link
Member Author

it's private API, so backporting is probably not worth it

@jorenham jorenham force-pushed the typing/lib._function_base_impl-fixes branch from 9442929 to be41eb5 Compare June 11, 2025 14:38
@charris charris merged commit 42b875f into numpy:main Jun 11, 2025
83 of 84 checks passed
@charris
Copy link
Member

charris commented Jun 11, 2025

Thanks Joren.

@jorenham jorenham deleted the typing/lib._function_base_impl-fixes branch June 11, 2025 18:30
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