MCPcopy Index your code
hub / github.com/ipython/ipython / Text

Class Text

IPython/lib/pretty.py:452–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450
451
452class Text(Printable):
453
454 def __init__(self):
455 self.objs = []
456 self.width = 0
457
458 def output(self, stream, output_width):
459 for obj in self.objs:
460 stream.write(obj)
461 return output_width + self.width
462
463 def add(self, obj, width):
464 self.objs.append(obj)
465 self.width += width
466
467
468class Breakable(Printable):

Callers 1

textMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…