MCPcopy Create free account
hub / github.com/python/mypy / FileInfo

Class FileInfo

mypy/report.py:451–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449
450
451class FileInfo:
452 def __init__(self, name: str, module: str) -> None:
453 self.name = name
454 self.module = module
455 self.counts = [0] * len(stats.precision_names)
456
457 def total(self) -> int:
458 return sum(self.counts)
459
460 def attrib(self) -> dict[str, str]:
461 return {name: str(val) for name, val in sorted(zip(stats.precision_names, self.counts))}
462
463
464class MemoryXmlReporter(AbstractReporter):

Callers 3

on_fileMethod · 0.85
on_fileMethod · 0.85
on_fileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…