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

Method write

mypy/build.py:5349–5357  ·  view source on GitHub ↗
(self, buf: WriteBuffer)

Source from the content-addressed store, hash-verified

5347 return SourcesDataMessage(sources=sources)
5348
5349 def write(self, buf: WriteBuffer) -> None:
5350 write_tag(buf, SOURCES_DATA_MESSAGE)
5351 write_int_bare(buf, len(self.sources))
5352 for bs in self.sources:
5353 write_str_opt(buf, bs.path)
5354 write_str_opt(buf, bs.module)
5355 write_str_opt(buf, bs.text)
5356 write_str_opt(buf, bs.base_dir)
5357 write_bool(buf, bs.followed)
5358
5359
5360class SccsDataMessage(IPCMessage):

Callers 1

buildFunction · 0.95

Calls 2

write_str_optFunction · 0.90
lenFunction · 0.85

Tested by

no test coverage detected