MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / _cache_key

Function _cache_key

lean_py/project.py:100–103  ·  view source on GitHub ↗
(lean_version: str, deps: tuple[str, ...])

Source from the content-addressed store, hash-verified

98
99
100def _cache_key(lean_version: str, deps: tuple[str, ...]) -> str:
101 src_id = str(_LEANPY_ROOT) if _IS_DEV else f"git:{_leanpy_git_rev()}"
102 blob = f"{lean_version}|{','.join(sorted(deps))}|{src_id}"
103 return hashlib.sha256(blob.encode()).hexdigest()[:16]
104
105
106class ManagedProject:

Callers 1

getMethod · 0.85

Calls 1

_leanpy_git_revFunction · 0.85

Tested by

no test coverage detected