Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __array__
Method
__array__
numpy/core/tests/test_umath.py:3059–3060 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
3057
3058
class
A:
3059
def
__array__(self):
3060
return
np.zeros(1)
3061
3062
def
__array_wrap__(self, arr, context):
3063
r = type(self)()
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected