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:2936–2937 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
2934
2935
class
with_wrap:
2936
def
__array__(self):
2937
return
np.zeros(1)
2938
2939
def
__array_wrap__(self, arr, context):
2940
r = with_wrap()
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected