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

Function make_cache

misc/diff-cache.py:27–31  ·  view source on GitHub ↗
(input_dir: str, sqlite: bool, num_shards: int = SQLITE_NUM_SHARDS)

Source from the content-addressed store, hash-verified

25
26
27def make_cache(input_dir: str, sqlite: bool, num_shards: int = SQLITE_NUM_SHARDS) -> MetadataStore:
28 if sqlite:
29 return SqliteMetadataStore(input_dir, num_shards=num_shards)
30 else:
31 return FilesystemMetadataStore(input_dir)
32
33
34def merge_deps(all: dict[str, set[str]], new: dict[str, set[str]]) -> None:

Callers 1

mainFunction · 0.70

Calls 2

SqliteMetadataStoreClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…