This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

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 : callable

Function that may be overridable via __array_ufunc__

Returns

: bool

True if func is 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

Referenced by