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

Function dedupe_modules

mypy/server/update.py:736–743  ·  view source on GitHub ↗
(modules: list[tuple[str, str]])

Source from the content-addressed store, hash-verified

734
735
736def dedupe_modules(modules: list[tuple[str, str]]) -> list[tuple[str, str]]:
737 seen: set[str] = set()
738 result = []
739 for id, path in modules:
740 if id not in seen:
741 seen.add(id)
742 result.append((id, path))
743 return result
744
745
746def get_module_to_path_map(graph: Graph) -> dict[str, str]:

Callers 2

updateMethod · 0.85
update_oneMethod · 0.85

Calls 3

setClass · 0.85
appendMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…