numpy.testing.overrides.allows_array_function_override

testing.overrides.allows_array_function_override(func)[source]

Determine if a Numpy function can be overridden via __array_function__

Parameters:
funccallable

Function that may be overridable via __array_function__

Returns:
bool

True if func is a function in the Numpy API that is overridable via __array_function__ and False otherwise.

© 2005–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.0/reference/generated/numpy.testing.overrides.allows_array_function_override.html