MCPcopy Index your code
hub / github.com/RustPython/RustPython / set_theme

Function set_theme

Lib/_colorize.py:346–352  ·  view source on GitHub ↗
(t: Theme)

Source from the content-addressed store, hash-verified

344
345
346def set_theme(t: Theme) -> None:
347 global _theme
348
349 if not isinstance(t, Theme):
350 raise ValueError(f"Expected Theme object, found {t}")
351
352 _theme = t
353
354
355set_theme(default_theme)

Callers 1

_colorize.pyFile · 0.85

Calls 1

isinstanceFunction · 0.85

Tested by

no test coverage detected