-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
ENH: implement __skip_array_function__
attribute for NEP-18
#13389
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
Conversation
247f88b
to
afda748
Compare
__skip_array_function__
attribute for NEP-18
Can remove the draft status after NEP changes are accepted? |
Yes, will do |
@shoyer was the work to change |
@@ -152,6 +152,8 @@ def public_api(*args, **kwargs): | |||
if module is not None: | |||
public_api.__module__ = module | |||
|
|||
public_api.__skip_array_function__ = implementation | |||
|
|||
return public_api |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will not merge cleanly after #13529
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
This is ready for review |
LGTM |
Anyone else want to take a look? Otherwise I'll merge this tomorrow. I have a few small changes building on top of this that I want to get into NumPy 1.17. |
To clarify the implications of #13305