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

Method _check_data

IPython/core/display.py:691–693  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

689class TextDisplayObject(DisplayObject):
690 """Validate that display data is text"""
691 def _check_data(self):
692 if self.data is not None and not isinstance(self.data, str):
693 raise TypeError("%s expects text, not %r" % (self.__class__.__name__, self.data))
694
695class Pretty(TextDisplayObject):
696

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected