Method: rich.segment.Segment.__rich_repr__
Calls: 57, Exceptions: 0, Paths: 3Back
Path 1: 42 calls (0.74)
Style (42) None (42) '━' (20) ' ' (6) '│' (4) 'foo' (2) 'Click' (2) '╭─' (1) '──────────────────────────────────' (1) ' Hello ' (1)
1def __rich_repr__(self) -> Result:
2 yield self.text
3 if self.control is None:
4 if self.style is not None:
5 yield self.style
6 else:
7 yield self.style
8 yield self.control
Path 2: 11 calls (0.19)
'\n' (2) 'foo' (2) 'f' (1) 'oo' (1) 'bar' (1) 'baz' (1) '╭─' (1) '────── Placeholder ───────' (1) '─╮' (1)
1def __rich_repr__(self) -> Result:
2 yield self.text
3 if self.control is None:
4 if self.style is not None:
5 yield self.style
6 else:
7 yield self.style
8 yield self.control
Path 3: 4 calls (0.07)
None (8) list (4) '\x1b[11;6H' (1) '\x1b[3C\x1b[4B' (1) '\x1b[11G\x1b[20B' (1) 'foo' (1)
1def __rich_repr__(self) -> Result:
2 yield self.text
3 if self.control is None:
4 if self.style is not None:
5 yield self.style
6 else:
7 yield self.style
8 yield self.control