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

Method __repr__

numpy/core/tests/test_arrayprint.py:428–429  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

426 def test_multiline_repr(self):
427 class MultiLine:
428 def __repr__(self):
429 return "Line 1\nLine 2"
430
431 a = np.array([[None, MultiLine()], [MultiLine(), None]])
432

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected