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

Method commit_path

mypy/metastore.py:261–265  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

259 self.dirty_shards.clear()
260
261 def commit_path(self, name: str) -> None:
262 i = self._shard_index(name)
263 if i in self.dirty_shards:
264 self.dbs[i].commit()
265 self.dirty_shards.discard(i)
266
267 def list_all(self) -> Iterable[str]:
268 for db in self.dbs:

Callers

nothing calls this directly

Calls 3

_shard_indexMethod · 0.95
discardMethod · 0.80
commitMethod · 0.45

Tested by

no test coverage detected