summaryrefslogtreecommitdiff
path: root/numpy/core/overrides.py
diff options
context:
space:
mode:
authorStephan Hoyer <shoyer@google.com>2018-11-10 14:40:56 -0800
committerStephan Hoyer <shoyer@google.com>2018-11-10 14:40:56 -0800
commit56ce2327462eb9e3980c568ce9be628892aad89f (patch)
treec60c98f603bb76fb81f43d7708ac025657469485 /numpy/core/overrides.py
parent3d49d86e0c83da1733386888c65b6490fb53497b (diff)
downloadnumpy-56ce2327462eb9e3980c568ce9be628892aad89f.tar.gz
MAINT: fix disabling __array_function__
Diffstat (limited to 'numpy/core/overrides.py')
-rw-r--r--numpy/core/overrides.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/overrides.py b/numpy/core/overrides.py
index 0bbb39123..efa71dfb6 100644
--- a/numpy/core/overrides.py
+++ b/numpy/core/overrides.py
@@ -153,7 +153,7 @@ def verify_matching_signatures(implementation, dispatcher):
def array_function_dispatch(dispatcher, module=None, verify=True):
"""Decorator for adding dispatch with the __array_function__ protocol."""
def decorator(implementation):
- if ENABLE_ARRAY_FUNCTION:
+ if not ENABLE_ARRAY_FUNCTION:
# __array_function__ requires an explicit opt-in for now
public_api = implementation
else: