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

Method __init__

IPython/core/oinspect.py:356–366  ·  view source on GitHub ↗
(self, color_table=InspectColors,
                 code_color_table=PyColorize.ANSICodeColors,
                 scheme=None,
                 str_detail_level=0,
                 parent=None, config=None)

Source from the content-addressed store, hash-verified

354class Inspector(Colorable):
355
356 def __init__(self, color_table=InspectColors,
357 code_color_table=PyColorize.ANSICodeColors,
358 scheme=None,
359 str_detail_level=0,
360 parent=None, config=None):
361 super(Inspector, self).__init__(parent=parent, config=config)
362 self.color_table = color_table
363 self.parser = PyColorize.Parser(out='str', parent=self, style=scheme)
364 self.format = self.parser.format
365 self.str_detail_level = str_detail_level
366 self.set_active_scheme(scheme)
367
368 def _getdef(self,obj,oname='') -> Union[str,None]:
369 """Return the call signature for any callable object.

Callers

nothing calls this directly

Calls 1

set_active_schemeMethod · 0.95

Tested by

no test coverage detected