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

Method get_style_for_token

rich/syntax.py:131–133  ·  view source on GitHub ↗

Get a style for a given Pygments token.

(self, token_type: TokenType)

Source from the content-addressed store, hash-verified

129
130 @abstractmethod
131 def get_style_for_token(self, token_type: TokenType) -> Style:
132 """Get a style for a given Pygments token."""
133 raise NotImplementedError # pragma: no cover
134
135 @abstractmethod
136 def get_background_style(self) -> Style:

Callers 3

_get_token_colorMethod · 0.45
_get_number_stylesMethod · 0.45
_get_syntaxMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected