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

Method __repr__

IPython/lib/tests/test_pretty.py:464–465  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

462
463class MySet(set): # Override repr of a basic type
464 def __repr__(self):
465 return 'mine'
466
467def test_custom_repr():
468 """A custom repr should override a pretty printer for a parent type"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected