MCPcopy
hub / github.com/python/mypy / update_sources

Method update_sources

mypy/dmypy_server.py:868–873  ·  view source on GitHub ↗
(self, sources: list[BuildSource])

Source from the content-addressed store, hash-verified

866 return messages
867
868 def update_sources(self, sources: list[BuildSource]) -> None:
869 paths = [source.path for source in sources if source.path is not None]
870 if self.following_imports():
871 # Filter out directories (used for namespace packages).
872 paths = [path for path in paths if self.fscache.isfile(path)]
873 self.fswatcher.add_watched_paths(paths)
874
875 def update_changed(
876 self, sources: list[BuildSource], remove: list[str], update: list[str]

Calls 3

following_importsMethod · 0.95
add_watched_pathsMethod · 0.80
isfileMethod · 0.45

Tested by

no test coverage detected