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

Method __array__

numpy/core/tests/test_multiarray.py:3308–3309  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

3306
3307 class A:
3308 def __array__(self, *args, **kwargs):
3309 raise NotImplementedError
3310
3311 # Don't override the error from calling __array__()
3312 assert_raises(NotImplementedError, np.dot, A(), A())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected