Skip to content

TYP: minor ufunc alias fixes in __init__.pyi #29120

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
Jun 3, 2025
Merged

Conversation

DanisNone
Copy link
Contributor

@DanisNone DanisNone commented Jun 3, 2025

The contents of the __init__.pyi file now better reflect reality, specifically:

  1. Removed type annotations for bitwise_not, conj, mod, and true_divide as they're function aliases
  2. Fixed np.divide.__name__ from "true_divide" to "divide" to match the real behavior

@jorenham jorenham self-requested a review June 3, 2025 13:29
@jorenham jorenham changed the title TYP: minor alias fixes in __init__.pyi TYP: minor ufunc alias fixes in __init__.pyi Jun 3, 2025
@jorenham
Copy link
Member

jorenham commented Jun 3, 2025

CI failures are unrelated: actions/runner-images#12045

@jorenham jorenham merged commit d52bccb into numpy:main Jun 3, 2025
72 of 81 checks passed
@jorenham
Copy link
Member

jorenham commented Jun 3, 2025

Thanks Danis!

HenriqueLLuz pushed a commit to VascoConceicao/numpy that referenced this pull request Jun 6, 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.

2 participants