MCPcopy Create free account
hub / github.com/numpy/numpy / __getitem__

Method __getitem__

numpy/core/tests/test_array_coercion.py:756–758  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

754 def __len__(self):
755 raise error
756 def __getitem__(self):
757 # must have getitem to be a Sequence
758 return 1
759
760 with pytest.raises(error):
761 np.array(BadSequence())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected