module documentation

Utilities for calculating and reporting statistics about types.

Class HasAnyQuery Undocumented
Class HasAnyQuery2 Undocumented
Class StatisticsVisitor No class docstring; 0/24 instance variable, 2/38 methods documented
Function dump_type_stats Undocumented
Function ensure_dir_exists Undocumented
Function get_original_any Undocumented
Function is_complex Undocumented
Function is_generic Undocumented
Function is_imprecise Undocumented
Function is_imprecise2 Undocumented
Function is_special_form_any Undocumented
Function is_special_module Undocumented
Constant precision_names Undocumented
Constant TYPE_ANY Undocumented
Constant TYPE_EMPTY Undocumented
Constant TYPE_IMPRECISE Undocumented
Constant TYPE_PRECISE Undocumented
Constant TYPE_UNANALYZED Undocumented
def dump_type_stats(tree: MypyFile, path: str, modules: dict[str, MypyFile], inferred: bool = False, typemap: dict[Expression, Type]|None = None): (source)

Undocumented

def ensure_dir_exists(dir: str): (source)

Undocumented

def get_original_any(t: AnyType) -> AnyType: (source)

Undocumented

def is_complex(t: Type) -> bool: (source)

Undocumented

def is_generic(t: Type) -> bool: (source)

Undocumented

def is_imprecise(t: Type) -> bool: (source)

Undocumented

def is_imprecise2(t: Type) -> bool: (source)

Undocumented

def is_special_form_any(t: AnyType) -> bool: (source)

Undocumented

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

Undocumented

precision_names: list[str] = (source)

Undocumented

Value
['empty', 'unanalyzed', 'precise', 'imprecise', 'any']
TYPE_ANY: int = (source)

Undocumented

Value
4
TYPE_EMPTY: int = (source)

Undocumented

Value
0
TYPE_IMPRECISE: int = (source)

Undocumented

Value
3
TYPE_PRECISE: int = (source)

Undocumented

Value
2
TYPE_UNANALYZED: int = (source)

Undocumented

Value
1