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

Method read_all

mypy/test/test_diff_cache.py:153–157  ·  view source on GitHub ↗
(cache_dir: str)

Source from the content-addressed store, hash-verified

151 from mypy.metastore import SqliteMetadataStore
152
153 def read_all(cache_dir: str) -> dict[str, bytes]:
154 store = SqliteMetadataStore(cache_dir, num_shards=SQLITE_NUM_SHARDS)
155 result = {name: store.read(name) for name in store.list_all()}
156 store.close()
157 return result
158
159 before = read_all(patched_ver)
160

Callers

nothing calls this directly

Calls 4

readMethod · 0.95
list_allMethod · 0.95
closeMethod · 0.95
SqliteMetadataStoreClass · 0.90

Tested by

no test coverage detected