module documentation

Classes for producing HTML reports about imprecision.

Class AbstractReporter Undocumented
Class AbstractXmlReporter Internal abstract class for reporters that work via XML.
Class AnyExpressionsReporter Report frequencies of different kinds of Any types.
Class CoberturaPackage Container for XML and statistics mapping python modules to Cobertura package.
Class CoberturaXmlReporter Reporter for generating Cobertura compliant XML.
Class FileInfo Undocumented
Class FuncCounterVisitor Undocumented
Class LineCountReporter Undocumented
Class LineCoverageReporter Exact line coverage reporter.
Class LineCoverageVisitor No class docstring; 0/2 instance variable, 1/3 method documented
Class LinePrecisionReporter Report per-module line counts for typing precision.
Class MemoryXmlReporter Internal reporter that generates XML in memory.
Class Reports Undocumented
Class XmlReporter Public reporter that exports XML.
Class XsltHtmlReporter Public reporter that exports HTML via XSLT.
Class XsltTxtReporter Public reporter that exports TXT via XSLT.
Function alias_reporter Undocumented
Function get_line_rate Undocumented
Function iterate_python_lines Return an iterator over (line number, line text) from a Python file.
Function register_reporter Undocumented
Function should_skip_path Undocumented
Constant LXML_INSTALLED Undocumented
Constant reporter_classes Undocumented
Constant type_of_any_name_map Undocumented
Type Alias ReporterClasses Undocumented
def alias_reporter(source_reporter: str, target_reporter: str): (source)

Undocumented

def get_line_rate(covered_lines: int, total_lines: int) -> str: (source)

Undocumented

def iterate_python_lines(path: str) -> Iterator[tuple[int, str]]: (source)

Return an iterator over (line number, line text) from a Python file.

def register_reporter(report_name: str, reporter: Callable[[Reports, str], AbstractReporter], needs_lxml: bool = False): (source)

Undocumented

def should_skip_path(path: str) -> bool: (source)

Undocumented

LXML_INSTALLED: bool = (source)

Undocumented

Value
True
reporter_classes: ReporterClasses = (source)

Undocumented

Value
{}

Undocumented

Value
collections.OrderedDict([(TypeOfAny.unannotated, 'Unannotated'),
                         (TypeOfAny.explicit, 'Explicit'),
                         (TypeOfAny.from_unimported_type, 'Unimported'),
                         (TypeOfAny.from_omitted_generics, 'Omitted Generics'),
                         (TypeOfAny.from_error, 'Error'),
                         (TypeOfAny.special_form, 'Special Form'),
                         (TypeOfAny.implementation_artifact, 'Implementation Art
...
ReporterClasses: _TypeAlias = (source)

Undocumented

Value
Dict[str, Tuple[Callable[[Reports, str], AbstractReporter], bool]]