Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __array__
Method
__array__
numpy/core/tests/test_array_coercion.py:56–57 ·
view source on GitHub ↗
(self, dtype=None)
Source
from the content-addressed store, hash-verified
54
self.a = a
55
56
def
__array__(self, dtype=None):
57
return
self.a
58
59
yield
param(ArrayDunder, id=
"__array__"
)
60
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected