MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / _path

Method _path

unity_cli/api/schema_cache.py:22–26  ·  view source on GitHub ↗
(self, version: str)

Source from the content-addressed store, hash-verified

20 self._dir = cache_dir
21
22 def _path(self, version: str) -> Path:
23 if not _VERSION_RE.fullmatch(version):
24 msg = f"Invalid version string: {version!r}"
25 raise ValueError(msg)
26 return self._dir / f"{version}.json"
27
28 def get(self, version: str) -> dict[str, Any] | None:
29 """Return cached schema or None if not cached."""

Callers 3

getMethod · 0.95
putMethod · 0.95
hasMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected