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

Method visit_import_all

mypy/server/deps.py:423–429  ·  view source on GitHub ↗
(self, o: ImportAll)

Source from the content-addressed store, hash-verified

421 self.add_dependency(make_trigger(module_id + "." + name))
422
423 def visit_import_all(self, o: ImportAll) -> None:
424 module_id, _ = correct_relative_import(
425 self.scope.current_module_id(), o.relative, o.id, self.is_package_init_file
426 )
427 # The current target needs to be rechecked if anything "significant" changes in the
428 # target module namespace (as the imported definitions will need to be updated).
429 self.add_dependency(make_wildcard_trigger(module_id))
430
431 def visit_block(self, o: Block) -> None:
432 if not o.is_unreachable:

Callers

nothing calls this directly

Calls 4

add_dependencyMethod · 0.95
correct_relative_importFunction · 0.90
make_wildcard_triggerFunction · 0.90
current_module_idMethod · 0.80

Tested by

no test coverage detected