MCPcopy Create free account
hub / github.com/dbcli/mycli / is_valid_pygments

Function is_valid_pygments

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

Source from the content-addressed store, hash-verified

116
117
118def is_valid_pygments(name: str) -> bool:
119 try:
120
121 class TestStyle(PygmentsStyle):
122 default_style = ''
123 styles = {Token.Default: name}
124
125 return True
126 except AssertionError:
127 # can't emit error because some styles are valid pygments and not valid ptoolkit
128 return False
129
130
131def is_valid_ptoolkit(name: str) -> bool:

Callers 1

style_factory_helpersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected