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

Function create_metastore

mypy/build.py:1913–1923  ·  view source on GitHub ↗

Create the appropriate metadata store.

(options: Options, parallel_worker: bool)

Source from the content-addressed store, hash-verified

1911
1912
1913def create_metastore(options: Options, parallel_worker: bool) -> MetadataStore:
1914 """Create the appropriate metadata store."""
1915 if options.sqlite_cache:
1916 mds: MetadataStore = SqliteMetadataStore(
1917 _cache_dir_prefix(options),
1918 set_journal_mode=not parallel_worker,
1919 num_shards=options.sqlite_num_shards,
1920 )
1921 else:
1922 mds = FilesystemMetadataStore(_cache_dir_prefix(options))
1923 return mds
1924
1925
1926def get_meta_ex_name(meta_name: str) -> str:

Callers 3

__init__Method · 0.90
buildFunction · 0.85
__init__Method · 0.85

Calls 3

SqliteMetadataStoreClass · 0.90
_cache_dir_prefixFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…