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

Method _repr_pretty_

IPython/core/tests/test_formatters.py:279–280  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

277 f = PlainTextFormatter()
278 class BadPretty(object):
279 def _repr_pretty_(self):
280 return "hello"
281 bad = BadPretty()
282 with capture_output() as captured:
283 result = f(bad)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected