bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / testing / overrides / allows_array_ufunc_override
function
numpy.testing.overrides:allows_array_ufunc_override
source: build-install/usr/lib/python3.14/site-packages/numpy/testing/overrides.py:28
Signature
def allows_array_ufunc_override(func)Summary
Determine if a function can be overridden via __array_ufunc__
Parameters
func: callableFunction that may be overridable via
__array_ufunc__
Returns
: boolTrue if
funcis overridable via__array_ufunc__and False otherwise.
Notes
This function is equivalent to isinstance(func, np.ufunc) and will work correctly for ufuncs defined outside of Numpy.
Aliases
numpy.testing.overrides.allows_array_ufunc_override