MCPcopy Index your code
hub / github.com/python/mypy / type_checker

Method type_checker

mypy/build.py:3417–3430  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3415 self.time_spent_us += time_spent_us(t0)
3416
3417 def type_checker(self) -> TypeChecker:
3418 if not self._type_checker:
3419 assert self.tree is not None, "Internal error: must be called on parsed file only"
3420 manager = self.manager
3421 self._type_checker = TypeChecker(
3422 manager.errors,
3423 manager.modules,
3424 self.options,
3425 self.tree,
3426 self.xpath,
3427 manager.plugin,
3428 self.per_line_checking_time_ns,
3429 )
3430 return self._type_checker
3431
3432 def type_map(self) -> dict[Expression, Type]:
3433 # We can extract the master type map directly since at this

Callers 10

type_check_first_passMethod · 0.95
type_mapMethod · 0.95
finish_passesMethod · 0.95
process_stale_sccFunction · 0.80
update_module_isolatedFunction · 0.80
reprocess_nodesFunction · 0.80

Calls 1

TypeCheckerClass · 0.90

Tested by

no test coverage detected