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

Method __rich_console__

rich/syntax.py:643–650  ·  view source on GitHub ↗
(
        self, console: Console, options: ConsoleOptions
    )

Source from the content-addressed store, hash-verified

641 return Measurement(self._numbers_column_width, width)
642
643 def __rich_console__(
644 self, console: Console, options: ConsoleOptions
645 ) -> RenderResult:
646 segments = Segments(self._get_syntax(console, options))
647 if any(self.padding):
648 yield Padding(segments, style=self._get_base_style(), pad=self.padding)
649 else:
650 yield segments
651
652 def _get_syntax(
653 self,

Callers

nothing calls this directly

Calls 4

_get_syntaxMethod · 0.95
_get_base_styleMethod · 0.95
PaddingClass · 0.90
SegmentsClass · 0.85

Tested by

no test coverage detected