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

Method set_import_context

mypy/errors.py:590–592  ·  view source on GitHub ↗

Replace the entire import context with a new value.

(self, ctx: list[tuple[str, int]])

Source from the content-addressed store, hash-verified

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."""
592 self.import_ctx = ctx.copy()
593
594 def report(
595 self,

Callers 4

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