MCPcopy Index your code
hub / github.com/prompt-toolkit/ptpython / get_all_code_styles

Function get_all_code_styles

src/ptpython/style.py:11–21  ·  view source on GitHub ↗

Return a mapping from style names to their classes.

()

Source from the content-addressed store, hash-verified

9
10
11def get_all_code_styles() -> dict[str, BaseStyle]:
12 """
13 Return a mapping from style names to their classes.
14 """
15 result: dict[str, BaseStyle] = {
16 name: style_from_pygments_cls(get_style_by_name(name))
17 for name in get_all_styles()
18 }
19 result["win32"] = Style.from_dict(win32_code_style)
20 result["default-ansi"] = Style.from_dict(default_ansi_code_style)
21 return result
22
23
24def get_all_ui_styles() -> dict[str, BaseStyle]:

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected