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

Method on_finish

mypy/report.py:443–445  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

441 self.lines_covered[os.path.abspath(tree.path)] = covered_lines
442
443 def on_finish(self) -> None:
444 with open(os.path.join(self.output_dir, "coverage.json"), "w") as f:
445 json.dump({"lines": self.lines_covered}, f)
446
447
448register_reporter("linecoverage", LineCoverageReporter)

Callers

nothing calls this directly

Calls 2

joinMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected