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

Function report_counter

misc/analyze_cache.py:78–81  ·  view source on GitHub ↗
(counter: Counter[str], amount: int | None = None)

Source from the content-addressed store, hash-verified

76
77
78def report_counter(counter: Counter[str], amount: int | None = None) -> None:
79 for name, count in counter.most_common(amount):
80 print(f" {count: <8} {name}")
81 print()
82
83
84def report_most_common(chunks: list[JsonDict], amount: int | None = None) -> None:

Callers 2

report_most_commonFunction · 0.85
mainFunction · 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…