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

Class MySet

IPython/lib/tests/test_pretty.py:463–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461 return self.__class__, (OrderedDict(self),)
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 1

test_custom_reprFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_custom_reprFunction · 0.68