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

Method dump_stats

mypy/build.py:1004–1011  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1002 self.known_partial_packages: dict[str, bool] = {}
1003
1004 def dump_stats(self) -> None:
1005 if self.stats_enabled:
1006 lines = ["Stats:"]
1007 for key, value in sorted(self.stats_summary().items()):
1008 fmt = ".3f" if isinstance(value, float) else "d"
1009 lines.append(f"{key + ':':24}{value:{fmt}}")
1010 # Call print once so that we don't get a mess in parallel mode.
1011 print("\n".join(lines) + "\n\n", end="")
1012
1013 def parse_all(self, states: list[State], post_parse: bool = True) -> None:
1014 """Parse multiple files in parallel (if possible) and compute dependencies.

Callers 3

build_innerFunction · 0.95
update_statsMethod · 0.80
serveFunction · 0.80

Calls 7

stats_summaryMethod · 0.95
sortedFunction · 0.85
isinstanceFunction · 0.85
printFunction · 0.85
appendMethod · 0.80
itemsMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected