Skip to content
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

ENH: Improve the np.ufunc annotations #19052

Merged
merged 7 commits into from
May 20, 2021
Merged

ENH: Improve the np.ufunc annotations #19052

merged 7 commits into from
May 20, 2021

Conversation

BvB93
Copy link
Member

@BvB93 BvB93 commented May 20, 2021

This PR improves the np.ufunc annotations.

Among others this includes support for:

  • nin- and nout-based parameters, return-types and methods (at, reduce, etc.)
  • Ufunc-specific properties (__name__, signature, etc.)
  • Generalized ufuncs
  • Scalar recognizition
  • Minor documentation improvements

Aforementioned enhancements were achieved via the creation of private nin-/nout-specific type-check-only subclasses,
the latter providing much-needed additional flexibility over the singular ufunc class available at runtime.

@charris charris merged commit 5c19c23 into numpy:main May 20, 2021
@charris
Copy link
Member

charris commented May 20, 2021

Thanks Bas.

@BvB93 BvB93 deleted the ufunc branch May 20, 2021 19:54
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.

None yet

3 participants