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

Method write

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

Source from the content-addressed store, hash-verified

5309 )
5310
5311 def write(self, buf: WriteBuffer) -> None:
5312 write_tag(buf, SCC_RESPONSE_MESSAGE)
5313 write_int_list(buf, self.scc_ids)
5314 write_bool(buf, self.is_interface)
5315 if self.result is None:
5316 assert self.blocker is not None
5317 write_tag(buf, LITERAL_NONE)
5318 write_str_list(buf, self.blocker.messages)
5319 write_bool(buf, self.blocker.use_stdout)
5320 write_str_opt(buf, self.blocker.module_with_blocker)
5321 else:
5322 write_tag(buf, DICT_STR_GEN)
5323 write_int_bare(buf, len(self.result))
5324 for mod_id in sorted(self.result):
5325 write_str_bare(buf, mod_id)
5326 self.result[mod_id].write(buf)
5327
5328
5329class SourcesDataMessage(IPCMessage):

Callers

nothing calls this directly

Calls 6

write_int_listFunction · 0.90
write_str_listFunction · 0.90
write_str_optFunction · 0.90
lenFunction · 0.85
sortedFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected