Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/numpy/numpy
/ ArrayLike
Class
ArrayLike
numpy/_core/tests/test_multiarray.py:9675–9677 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
9673
9674
def
test_interface_empty_shape():
9675
class
ArrayLike:
9676
array = np.array(1)
9677
__array_interface__ = array.__array_interface__
9678
assert_equal(np.array(ArrayLike()), 1)
9679
9680
Callers
6
test_array_interfaces
Method · 0.70
test___array__
Method · 0.70
test_interface_empty_shape
Function · 0.70
test_interface_no_shape_error
Function · 0.70
test_interface_nullptr
Function · 0.70
test_interface_nullptr_size_check
Function · 0.70
Calls
no outgoing calls
Tested by
6
test_array_interfaces
Method · 0.56
test___array__
Method · 0.56
test_interface_empty_shape
Function · 0.56
test_interface_no_shape_error
Function · 0.56
test_interface_nullptr
Function · 0.56
test_interface_nullptr_size_check
Function · 0.56
Used in the wild
real call sites across dependent graphs
searching dependent graphs…