summaryrefslogtreecommitdiff
path: root/numpy/core/overrides.py
diff options
context:
space:
mode:
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: