Support for testing overrides (numpy.testing.overrides)#

Support for testing custom array container implementations.

Utility Functions#

allows_array_function_override(func)

Determine if a Numpy function can be overriden via __array_function__

allows_array_ufunc_override(func)

Determine if a function can be overriden via __array_ufunc__

get_overridable_numpy_ufuncs()

List all numpy ufuncs overridable via __array_ufunc__

get_overridable_numpy_array_functions()

List all numpy functions overridable via __array_function__