class documentation

class TypeCheckSuite(DataSuite): (source)

View In Hierarchy

Undocumented

Method find_error_message_paths Undocumented
Method find_missing_cache_files Undocumented
Method find_module_files Undocumented
Method parse_module Return the module and program names for a test case.
Method run_case Undocumented
Method run_case_once Undocumented
Method verify_cache Undocumented

Inherited from DataSuite:

Method setup Setup fixtures (ad-hoc)
Class Variable files Undocumented
Class Variable native_sep Undocumented
Class Variable required_out_section Undocumented
Class Variable test_name_suffix Undocumented
def find_error_message_paths(self, a: list[str]) -> set[str]: (source)

Undocumented

def find_missing_cache_files(self, modules: dict[str, str], manager: build.BuildManager) -> set[str]: (source)

Undocumented

def find_module_files(self, manager: build.BuildManager) -> dict[str, str]: (source)

Undocumented

def parse_module(self, program_text: str, incremental_step: int = 0) -> list[tuple[str, str, str]]: (source)

Return the module and program names for a test case. Normally, the unit tests will parse the default ('__main__') module and follow all the imports listed there. You can override this behavior and instruct the tests to check multiple modules by using a comment like this in the test case input: # cmd: mypy -m foo.bar foo.baz You can also use `# cmdN:` to have a different cmd for incremental step N (2, 3, ...). Return a list of tuples (module name, file name, program text).

def run_case(self, testcase: DataDrivenTestCase): (source)

Undocumented

def run_case_once(self, testcase: DataDrivenTestCase, operations: list[FileOperation] = [], incremental_step: int = 0): (source)

Undocumented

def verify_cache(self, module_data: list[tuple[str, str, str]], a: list[str], manager: build.BuildManager, graph: Graph): (source)

Undocumented