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

Function get_sources

mypy/server/update.py:750–760  ·  view source on GitHub ↗
(
    fscache: FileSystemCache,
    modules: dict[str, str],
    changed_modules: list[tuple[str, str]],
    followed: bool,
)

Source from the content-addressed store, hash-verified

748
749
750def get_sources(
751 fscache: FileSystemCache,
752 modules: dict[str, str],
753 changed_modules: list[tuple[str, str]],
754 followed: bool,
755) -> list[BuildSource]:
756 sources = []
757 for id, path in changed_modules:
758 if fscache.isfile(path):
759 sources.append(BuildSource(path, id, None, followed=followed))
760 return sources
761
762
763def calculate_active_triggers(

Callers 1

update_module_isolatedFunction · 0.85

Calls 3

BuildSourceClass · 0.90
appendMethod · 0.80
isfileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…