Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __array__
Method
__array__
numpy/core/tests/test_multiarray.py:877–878 ·
view source on GitHub ↗
(self, dtype=None)
Source
from the content-addressed store, hash-verified
875
def
test_from_attribute(self):
876
class
x:
877
def
__array__(self, dtype=None):
878
pass
879
880
assert_raises(ValueError, np.array, x())
881
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected