MCPcopy Create free account
hub / github.com/numpy/numpy / __array_function__

Method __array_function__

numpy/testing/tests/test_utils.py:195–196  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

193 def test_subclass_that_does_not_implement_npall(self):
194 class MyArray(np.ndarray):
195 def __array_function__(self, *args, **kwargs):
196 return NotImplemented
197
198 a = np.array([1., 2.]).view(MyArray)
199 b = np.array([2., 3.]).view(MyArray)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected