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

Method import_context

mypy/errors.py:586–588  ·  view source on GitHub ↗

Return a copy of the import context.

(self)

Source from the content-addressed store, hash-verified

584 return self.target_module
585
586 def import_context(self) -> list[tuple[str, int]]:
587 """Return a copy of the import context."""
588 return self.import_ctx.copy()
589
590 def set_import_context(self, ctx: list[tuple[str, int]]) -> None:
591 """Replace the entire import context with a new value."""

Callers 6

reportMethod · 0.95
report_simple_errorMethod · 0.95
wrap_contextMethod · 0.80
module_not_foundFunction · 0.80
skipping_moduleFunction · 0.80
skipping_ancestorFunction · 0.80

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected