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

Method __str__

rich/pretty.py:552–558  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

550 )
551
552 def __str__(self) -> str:
553 if self.last:
554 return f"{self.whitespace}{self.text}{self.node or ''}"
555 else:
556 return (
557 f"{self.whitespace}{self.text}{self.node or ''}{self.suffix.rstrip()}"
558 )
559
560
561def _is_namedtuple(obj: Any) -> bool:

Callers

nothing calls this directly

Calls 1

rstripMethod · 0.80

Tested by

no test coverage detected