def process(self) -> None: """Type check file and advance to the next state.""" if self.manager.target >= TYPE_CHECK: self.type_checker().visit_file(self.tree, self.tree.path) if 'dump-infer-stats' in self.manager.flags: stats.dump_type_stats(self.tree, self.tree.path, inferred=True, typemap=self.manager.type_checker.type_map) elif 'html-report' in self.manager.flags: stats.generate_html_report( self.tree, self.tree.path, type_map=self.manager.type_checker.type_map, output_dir=self.manager.html_report_dir) # FIX remove from active state list to speed up processing self.switch_state(TypeCheckedFile(self.info(), self.tree))
def on_file(self, tree: MypyFile, type_map: Dict[Expression, Type], options: Options) -> None: stats.generate_html_report(tree, tree.path, type_map, self.output_dir)
def on_file(self, tree: MypyFile, type_map: Dict[Node, Type]) -> None: stats.generate_html_report(tree, tree.path, type_map, self.output_dir)