summaryrefslogtreecommitdiff
path: root/numpy/testing/overrides.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/testing/overrides.py')
-rw-r--r--numpy/testing/overrides.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/numpy/testing/overrides.py b/numpy/testing/overrides.py
index d20ed60e5..edc7132c2 100644
--- a/numpy/testing/overrides.py
+++ b/numpy/testing/overrides.py
@@ -21,10 +21,11 @@ def get_overridable_numpy_ufuncs():
"""
ufuncs = {obj for obj in _umath.__dict__.values()
if isinstance(obj, _ufunc)}
+ return ufuncs
def allows_array_ufunc_override(func):
- """Determine if a function can be overriden via `__array_ufunc__`
+ """Determine if a function can be overridden via `__array_ufunc__`
Parameters
----------
@@ -37,9 +38,9 @@ def allows_array_ufunc_override(func):
`True` if `func` is overridable via `__array_ufunc__` and
`False` otherwise.
- Note
- ----
- This function is equivalent to `isinstance(func, np.ufunc)` and
+ Notes
+ -----
+ This function is equivalent to ``isinstance(func, np.ufunc)`` and
will work correctly for ufuncs defined outside of Numpy.
"""
@@ -66,7 +67,7 @@ def get_overridable_numpy_array_functions():
return _array_functions.copy()
def allows_array_function_override(func):
- """Determine if a Numpy function can be overriden via `__array_function__`
+ """Determine if a Numpy function can be overridden via `__array_function__`
Parameters
----------