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

Method plain

rich/text.py:403–407  ·  view source on GitHub ↗

Get the text as a single string.

(self)

Source from the content-addressed store, hash-verified

401
402 @property
403 def plain(self) -> str:
404 """Get the text as a single string."""
405 if len(self._text) != 1:
406 self._text[:] = ["".join(self._text)]
407 return self._text[0]
408
409 @plain.setter
410 def plain(self, new_text: str) -> None:

Callers

nothing calls this directly

Calls 3

_trim_spansMethod · 0.95
strip_control_codesFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected