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

Method visit_import

mypy/stats.py:138–143  ·  view source on GitHub ↗
(self, imp: Import)

Source from the content-addressed store, hash-verified

136 self.record_line(imp.line, kind)
137
138 def visit_import(self, imp: Import) -> None:
139 if all(id in self.modules for id, _ in imp.ids):
140 kind = TYPE_PRECISE
141 else:
142 kind = TYPE_ANY
143 self.record_line(imp.line, kind)
144
145 def visit_func_def(self, o: FuncDef) -> None:
146 with self.enter_scope(o):

Callers

nothing calls this directly

Calls 2

record_lineMethod · 0.95
allFunction · 0.85

Tested by

no test coverage detected