MCPcopy
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
9674def 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_interfacesMethod · 0.70
test___array__Method · 0.70
test_interface_nullptrFunction · 0.70

Calls

no outgoing calls

Tested by 6

test_array_interfacesMethod · 0.56
test___array__Method · 0.56
test_interface_nullptrFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…