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

Method __array__

numpy/typing/tests/data/pass/ufunclike.py:16–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14 return True
15
16 def __array__(self) -> np.ndarray[Any, np.dtype[np.object_]]:
17 ret = np.empty((), dtype=object)
18 ret[()] = self
19 return ret
20
21
22AR_LIKE_b = [True, True, False]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected