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

Method __init__

rich/syntax.py:186–190  ·  view source on GitHub ↗
(self, style_map: Dict[TokenType, Style])

Source from the content-addressed store, hash-verified

184 """Syntax theme to use standard colors."""
185
186 def __init__(self, style_map: Dict[TokenType, Style]) -> None:
187 self.style_map = style_map
188 self._missing_style = Style.null()
189 self._background_style = Style.null()
190 self._style_cache: Dict[TokenType, Style] = {}
191
192 def get_style_for_token(self, token_type: TokenType) -> Style:
193 """Look up style in the style map."""

Callers

nothing calls this directly

Calls 1

nullMethod · 0.80

Tested by

no test coverage detected