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

Method write

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

Source from the content-addressed store, hash-verified

5399 return message
5400
5401 def write(self, buf: WriteBuffer) -> None:
5402 write_tag(buf, GRAPH_MESSAGE)
5403 write_int_bare(buf, len(self.graph))
5404 for mod_id, state in self.graph.items():
5405 write_str_bare(buf, mod_id)
5406 state.write(buf)
5407 write_int_bare(buf, len(self.missing_modules))
5408 for module, reason in self.missing_modules.items():
5409 write_str_bare(buf, module)
5410 write_int(buf, reason)
5411 write_int_bare(buf, len(self.from_cache))
5412 for module in self.from_cache:
5413 write_str_bare(buf, module)

Callers 1

process_graphFunction · 0.95

Calls 4

write_intFunction · 0.90
lenFunction · 0.85
itemsMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected