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

Method read

mypy/build.py:5207–5221  ·  view source on GitHub ↗
(cls, buf: ReadBuffer)

Source from the content-addressed store, hash-verified

5205
5206 @classmethod
5207 def read(cls, buf: ReadBuffer) -> SccRequestMessage:
5208 return SccRequestMessage(
5209 scc_ids=read_int_list(buf),
5210 import_errors={
5211 read_str(buf): [ErrorInfo.read(buf) for _ in range(read_int_bare(buf))]
5212 for _ in range(read_int_bare(buf))
5213 },
5214 mod_data={
5215 read_str_bare(buf): (
5216 read_bytes(buf),
5217 FileRawData.read(buf) if read_bool(buf) else None,
5218 )
5219 for _ in range(read_int_bare(buf))
5220 },
5221 )
5222
5223 def write(self, buf: WriteBuffer) -> None:
5224 write_tag(buf, SCC_REQUEST_MESSAGE)

Callers

nothing calls this directly

Calls 6

read_int_listFunction · 0.90
read_strFunction · 0.90
read_bytesFunction · 0.90
SccRequestMessageClass · 0.85
rangeClass · 0.85
readMethod · 0.45

Tested by

no test coverage detected