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

Method read

mypy/cache.py:286–295  ·  view source on GitHub ↗
(cls, data: ReadBuffer)

Source from the content-addressed store, hash-verified

284
285 @classmethod
286 def read(cls, data: ReadBuffer) -> CacheMetaEx | None:
287 try:
288 return CacheMetaEx(
289 dependencies=read_str_list(data),
290 suppressed=read_str_list(data),
291 dep_hashes=read_bytes_list(data),
292 error_lines=read_errors(data),
293 )
294 except (ValueError, AssertionError):
295 return None
296
297
298# Always use this type alias to refer to type tags.

Callers

nothing calls this directly

Calls 4

CacheMetaExClass · 0.85
read_str_listFunction · 0.85
read_bytes_listFunction · 0.85
read_errorsFunction · 0.85

Tested by

no test coverage detected