summaryrefslogtreecommitdiff
path: root/numpy/core/_methods.py
diff options
context:
space:
mode:
authorStephan Hoyer <shoyer@google.com>2018-12-19 10:08:01 -0800
committerStephan Hoyer <shoyer@google.com>2018-12-19 10:46:40 -0800
commit45413455791c77465c5f33a5082053274eb18900 (patch)
tree7362d739f4558b4aece09bbde333df5c219d8f1a /numpy/core/_methods.py
parentf4ddc2b3251d4606cc227761933e991131425416 (diff)
downloadnumpy-45413455791c77465c5f33a5082053274eb18900.tar.gz
ENH: refactor __array_function__ pure Python implementation
Diffstat (limited to 'numpy/core/_methods.py')
-rw-r--r--numpy/core/_methods.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/_methods.py b/numpy/core/_methods.py
index baeab6383..c6c163e16 100644
--- a/numpy/core/_methods.py
+++ b/numpy/core/_methods.py
@@ -161,7 +161,7 @@ def _array_function(self, func, types, args, kwargs):
# TODO: rewrite this in C
# Cannot handle items that have __array_function__ other than our own.
for t in types:
- if not issubclass(t, mu.ndarray) and hasattr(t, '__array_function__'):
+ if not issubclass(t, mu.ndarray):
return NotImplemented
# The regular implementation can handle this, so we call it directly.