MCPcopy Index your code
hub / github.com/python/cpython / set_theme

Function set_theme

Misc/mypy/_colorize.py:522–528  ·  view source on GitHub ↗
(t: Theme)

Source from the content-addressed store, hash-verified

520
521
522def set_theme(t: Theme) -> None:
523 global _theme
524
525 if not isinstance(t, Theme):
526 raise ValueError(f"Expected Theme object, found {t}")
527
528 _theme = t
529
530
531set_theme(default_theme)

Callers 1

_colorize.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…