MCPcopy
hub / github.com/python/mypy / read

Method read

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

Source from the content-addressed store, hash-verified

5334
5335 @classmethod
5336 def read(cls, buf: ReadBuffer) -> SourcesDataMessage:
5337 sources = [
5338 BuildSource(
5339 read_str_opt(buf),
5340 read_str_opt(buf),
5341 read_str_opt(buf),
5342 read_str_opt(buf),
5343 read_bool(buf),
5344 )
5345 for _ in range(read_int_bare(buf))
5346 ]
5347 return SourcesDataMessage(sources=sources)
5348
5349 def write(self, buf: WriteBuffer) -> None:
5350 write_tag(buf, SOURCES_DATA_MESSAGE)

Callers

nothing calls this directly

Calls 4

BuildSourceClass · 0.90
read_str_optFunction · 0.90
rangeClass · 0.85
SourcesDataMessageClass · 0.85

Tested by

no test coverage detected