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

Method reload

mypy/suggestions.py:706–710  ·  view source on GitHub ↗

Recheck the module given by state.

(self, state: State)

Source from the content-addressed store, hash-verified

704 func.unanalyzed_type = old
705
706 def reload(self, state: State) -> list[str]:
707 """Recheck the module given by state."""
708 assert state.path is not None
709 self.fgmanager.flush_cache()
710 return self.fgmanager.update([(state.id, state.path)], [])
711
712 def ensure_loaded(self, state: State, force: bool = False) -> MypyFile:
713 """Make sure that the module represented by state is fully loaded."""

Callers 2

restore_afterMethod · 0.95
ensure_loadedMethod · 0.95

Calls 2

flush_cacheMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected