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

Method load_fine_grained_deps

mypy/build.py:1308–1317  ·  view source on GitHub ↗
(self, id: str)

Source from the content-addressed store, hash-verified

1306 return tree
1307
1308 def load_fine_grained_deps(self, id: str) -> dict[str, set[str]]:
1309 t0 = time.time()
1310 if id in self.fg_deps_meta:
1311 # TODO: Assert deps file wasn't changed.
1312 deps = json_loads(self.metastore.read(self.fg_deps_meta[id]["path"]))
1313 else:
1314 deps = {}
1315 val = {k: set(v) for k, v in deps.items()}
1316 self.add_stats(load_fg_deps_time=time.time() - t0)
1317 return val
1318
1319 def report_file(
1320 self, file: MypyFile, type_map: dict[Expression, Type], options: Options

Callers

nothing calls this directly

Calls 5

add_statsMethod · 0.95
json_loadsFunction · 0.90
setClass · 0.85
readMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected