def __rich_measure__(self, console: 'Console', options: 'ConsoleOptions') -> 'Measurement':
    pretty_str = pretty_repr(self._object, max_width=options.max_width, indent_size=self.indent_size, max_length=self.max_length, max_string=self.max_string)
    text_width = (max((cell_len(line) for line in pretty_str.splitlines())) if pretty_str else 0)
    return Measurement(text_width, text_width)
def __rich_measure__(self, console: 'Console', options: 'ConsoleOptions') -> 'Measurement':
    pretty_str = pretty_repr(self._object, max_width=options.max_width, indent_size=self.indent_size, max_length=self.max_length, max_string=self.max_string)
    text_width = (max((cell_len(line) for line in pretty_str.splitlines())) if pretty_str else 0)
    return Measurement(text_width, text_width)