def __rich_console__(self, console: 'Console', options: 'ConsoleOptions') -> 'RenderResult':
    pretty_str = pretty_repr(self._object, max_width=(options.max_width - self.margin), indent_size=self.indent_size, max_length=self.max_length, max_string=self.max_string, expand_all=self.expand_all)
    pretty_text = Text(pretty_str, justify=(self.justify or options.justify), overflow=(self.overflow or options.overflow), no_wrap=pick_bool(self.no_wrap, options.no_wrap), style='pretty')
    pretty_text = (self.highlighter(pretty_text) if pretty_text else Text(f'{type(self._object)}.__repr__ returned empty string', style='dim italic'))
    if (self.indent_guides and (not options.ascii_only)):
        pretty_text = pretty_text.with_indent_guides(self.indent_size, style='repr.indent')
    if (self.insert_line and ('\n' in pretty_text)):
        (yield '')
    (yield pretty_text)
def __rich_console__(self, console: 'Console', options: 'ConsoleOptions') -> 'RenderResult':
    pretty_str = pretty_repr(self._object, max_width=(options.max_width - self.margin), indent_size=self.indent_size, max_length=self.max_length, max_string=self.max_string, expand_all=self.expand_all)
    pretty_text = Text(pretty_str, justify=(self.justify or options.justify), overflow=(self.overflow or options.overflow), no_wrap=pick_bool(self.no_wrap, options.no_wrap), style='pretty')
    pretty_text = (self.highlighter(pretty_text) if pretty_text else Text(f'{type(self._object)}.__repr__ returned empty string', style='dim italic'))
    if (self.indent_guides and (not options.ascii_only)):
        pretty_text = pretty_text.with_indent_guides(self.indent_size, style='repr.indent')
    if (self.insert_line and ('\n' in pretty_text)):
        (yield )
    (yield pretty_text)