MCPcopy
hub / github.com/Textualize/rich / iter_text

Method iter_text

rich/text.py:790–797  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

788 new_text = self.blank_copy()
789
790 def iter_text() -> Iterable["Text"]:
791 if self.plain:
792 for last, line in loop_last(lines):
793 yield line
794 if not last:
795 yield self
796 else:
797 yield from lines
798
799 extend_text = new_text._text.extend
800 append_span = new_text._spans.append

Callers

nothing calls this directly

Calls 1

loop_lastFunction · 0.85

Tested by

no test coverage detected