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

Method deserialize

mypy/cache.py:268–277  ·  view source on GitHub ↗
(cls, meta: dict[str, Any])

Source from the content-addressed store, hash-verified

266
267 @classmethod
268 def deserialize(cls, meta: dict[str, Any]) -> CacheMetaEx | None:
269 try:
270 return CacheMetaEx(
271 dependencies=meta["dependencies"],
272 suppressed=meta["suppressed"],
273 dep_hashes=[bytes.fromhex(dep) for dep in meta["dep_hashes"]],
274 error_lines=[tuple(err) for err in meta["error_lines"]],
275 )
276 except (KeyError, ValueError):
277 return None
278
279 def write(self, data: WriteBuffer) -> None:
280 write_str_list(data, self.dependencies)

Callers

nothing calls this directly

Calls 2

CacheMetaExClass · 0.85
tupleClass · 0.85

Tested by

no test coverage detected