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

Function get_files

misc/analyze_cache.py:64–71  ·  view source on GitHub ↗
(root: str)

Source from the content-addressed store, hash-verified

62
63
64def get_files(root: str) -> Iterable[CacheData]:
65 for dirpath, dirnames, filenames in os.walk(root):
66 for filename in filenames:
67 if filename.endswith(".data.json"):
68 meta_filename = filename.replace(".data.json", ".meta.json")
69 yield load_json(
70 os.path.join(dirpath, filename), os.path.join(dirpath, meta_filename)
71 )
72
73
74def pluck(name: str, chunks: Iterable[JsonDict]) -> Iterable[JsonDict]:

Callers 1

mainFunction · 0.85

Calls 4

load_jsonFunction · 0.85
replaceMethod · 0.80
endswithMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…