class documentation

class LinePrecisionReporter(AbstractReporter): (source)

View In Hierarchy

Report per-module line counts for typing precision.

Each line is classified into one of these categories:

  • precise (fully type checked)
  • imprecise (Any types in a type component, such as List[Any])
  • any (something with an Any type, implicit or explicit)
  • empty (empty line, comment or docstring)
  • unanalyzed (mypy considers line unreachable)

The meaning of these categories varies slightly depending on context.

Method __init__ Undocumented
Method on​_file Undocumented
Method on​_finish Undocumented
Instance Variable files Undocumented

Inherited from AbstractReporter:

Instance Variable output​_dir Undocumented
def __init__(self, reports, output_dir): (source)

Undocumented

Parameters
reports:ReportsUndocumented
output​_dir:strUndocumented
def on_file(self, tree, modules, type_map, options): (source)

Undocumented

Parameters
tree:MypyFileUndocumented
modules:Dict[str, MypyFile]Undocumented
type​_map:Dict[Expression, Type]Undocumented
options:OptionsUndocumented
def on_finish(self): (source)
files: List[FileInfo] = (source)

Undocumented