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

Function merge_dependencies

mypy/server/deps.py:1101–1103  ·  view source on GitHub ↗
(new_deps: dict[str, set[str]], deps: dict[str, set[str]])

Source from the content-addressed store, hash-verified

1099
1100
1101def merge_dependencies(new_deps: dict[str, set[str]], deps: dict[str, set[str]]) -> None:
1102 for trigger, targets in new_deps.items():
1103 deps.setdefault(trigger, set()).update(targets)
1104
1105
1106def non_trivial_bases(info: TypeInfo) -> list[TypeInfo]:

Callers 4

generate_deps_for_cacheFunction · 0.90
__init__Method · 0.90
ensure_deps_loadedFunction · 0.90

Calls 4

setClass · 0.85
setdefaultMethod · 0.80
itemsMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…