MCPcopy Index your code
hub / github.com/python/mypy / colorize_line

Function colorize_line

mypyc/annotate.py:468–472  ·  view source on GitHub ↗
(linenum: str, s: str, hint_html: str)

Source from the content-addressed store, hash-verified

466
467
468def colorize_line(linenum: str, s: str, hint_html: str) -> str:
469 hint_prefix = " " * len(linenum) + " "
470 line_span = f'<div class="collapsible" style="background-color: #fcc">{linenum} {s}</div>'
471 hint_div = f'<div class="content">{hint_prefix}<div class="hint">{hint_html}</div></div>'
472 return f"<span>{line_span}{hint_div}</span>"

Callers 1

generate_html_reportFunction · 0.85

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…