Method: rich.pretty.Pretty.__rich_measure__
Calls: 77, Exceptions: 0, Paths: 1Back
Path 1: 77 calls (1.0)
Console (77)
ConsoleOptions (77)
Measurement (77)
1def __rich_measure__(
2 self, console: "Console", options: "ConsoleOptions"
3 ) -> "Measurement":
4 pretty_str = pretty_repr(
5 self._object,
6 max_width=options.max_width,
7 indent_size=self.indent_size,
8 max_length=self.max_length,
9 max_string=self.max_string,
10 expand_all=self.expand_all,
11 )
12 text_width = (
13 max(cell_len(line) for line in pretty_str.splitlines()) if pretty_str else 0
14 )
15 return Measurement(text_width, text_width)