Skip to content

✨ complete ufunc infrastructure rewrite #231

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
Mar 4, 2025
Merged

✨ complete ufunc infrastructure rewrite #231

merged 3 commits into from
Mar 4, 2025

Conversation

jorenham
Copy link
Member

@jorenham jorenham commented Mar 4, 2025

numpy.ufunc is now generic on each of its overridable methods.
This makes it possible to individually annotate the ufunc signatures, even in downstream packages like scipy.special.

This also fixes all of the ufunc stubtest errors.

I also noticed that in pylance and the mypy error messages, the types of the ufuncs are now a lot more readable.

closes #88

@jorenham
Copy link
Member Author

jorenham commented Mar 4, 2025

this one required working around 2 mypy bugs

@jorenham jorenham merged commit 130e941 into main Mar 4, 2025
4 checks passed
@jorenham jorenham deleted the generic-ufunc branch March 4, 2025 03:26
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.

generic numpy.ufunc
1 participant