MCPcopy Index your code
hub / github.com/dbcli/mycli / is_valid_ptoolkit

Function is_valid_ptoolkit

mycli/clistyle.py:131–137  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

129
130
131def is_valid_ptoolkit(name: str) -> bool:
132 try:
133 _s = Style([("default", name)])
134 return True
135 except ValueError:
136 # can't emit error because some styles are valid pygments and not valid ptoolkit
137 return False
138
139
140def style_factory_ptoolkit(name: str, cli_style: dict[str, str]) -> _MergedStyle:

Callers 1

style_factory_ptoolkitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected