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

Method _check_data

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

Source from the content-addressed store, hash-verified

887 super(JSON, self).__init__(data=data, url=url, filename=filename)
888
889 def _check_data(self):
890 if self.data is not None and not isinstance(self.data, (dict, list)):
891 raise TypeError("%s expects JSONable dict or list, not %r" % (self.__class__.__name__, self.data))
892
893 @property
894 def data(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected