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

Method _get_base_style

rich/syntax.py:424–427  ·  view source on GitHub ↗

Get the base style.

(self)

Source from the content-addressed store, hash-verified

422 return lexer_name
423
424 def _get_base_style(self) -> Style:
425 """Get the base style."""
426 default_style = self._theme.get_background_style() + self.background_style
427 return default_style
428
429 def _get_token_color(self, token_type: TokenType) -> Optional[Color]:
430 """Get a color (if any) for the given token.

Callers 4

highlightMethod · 0.95
_get_number_stylesMethod · 0.95
__rich_console__Method · 0.95
_get_syntaxMethod · 0.95

Calls 1

get_background_styleMethod · 0.45

Tested by

no test coverage detected