MCPcopy Create free account
hub / github.com/apache/tvm / print_color

Function print_color

tests/scripts/ci.py:56–61  ·  view source on GitHub ↗
(color: str, msg: str, bold: bool, **kwargs: Any)

Source from the content-addressed store, hash-verified

54
55
56def print_color(color: str, msg: str, bold: bool, **kwargs: Any) -> None:
57 if hasattr(sys.stdout, "isatty") and sys.stdout.isatty():
58 bold_code = col.BOLD if bold else ""
59 print(bold_code + color + msg + col.RESET, **kwargs)
60 else:
61 print(msg, **kwargs)
62
63
64warnings: list[str] = []

Callers 3

clean_exitFunction · 0.85
cmdFunction · 0.85
docsFunction · 0.85

Calls 1

printFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…