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

Function print_with_line_numbers

mypyc/test/testutil.py:215–218  ·  view source on GitHub ↗
(s: str)

Source from the content-addressed store, hash-verified

213
214
215def print_with_line_numbers(s: str) -> None:
216 lines = s.splitlines()
217 for i, line in enumerate(lines):
218 print("%-4d %s" % (i + 1, line))
219
220
221def heading(text: str) -> None:

Callers 1

show_cFunction · 0.85

Calls 3

enumerateFunction · 0.85
printFunction · 0.85
splitlinesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…