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

Function _cache_dir_prefix

mypy/build.py:1872–1880  ·  view source on GitHub ↗

Get current cache directory (or file if id is given).

(options: Options)

Source from the content-addressed store, hash-verified

1870
1871
1872def _cache_dir_prefix(options: Options) -> str:
1873 """Get current cache directory (or file if id is given)."""
1874 if options.bazel:
1875 # This is needed so the cache map works.
1876 return os.curdir
1877 cache_dir = options.cache_dir
1878 pyversion = options.python_version
1879 base = os_path_join(cache_dir, "%d.%d" % pyversion)
1880 return base
1881
1882
1883def add_catch_all_gitignore(target_dir: str) -> None:

Callers 4

write_deps_cacheFunction · 0.85
write_plugins_snapshotFunction · 0.85
create_metastoreFunction · 0.85
get_cache_namesFunction · 0.85

Calls 1

os_path_joinFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…