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

Method __array__

numpy/core/tests/test_regression.py:2463–2464  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2461 def test_2d__array__shape(self):
2462 class T:
2463 def __array__(self):
2464 return np.ndarray(shape=(0,0))
2465
2466 # Make sure __array__ is used instead of Sequence methods.
2467 def __iter__(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected