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

Function deps_to_json

mypy/build.py:1589–1590  ·  view source on GitHub ↗
(x: dict[str, set[str]])

Source from the content-addressed store, hash-verified

1587
1588
1589def deps_to_json(x: dict[str, set[str]]) -> bytes:
1590 return json_dumps({k: list(v) for k, v in x.items()})
1591
1592
1593# File for storing metadata about all the fine-grained dependency caches

Callers 1

write_deps_cacheFunction · 0.85

Calls 3

json_dumpsFunction · 0.90
listClass · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…