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

Method write

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

Source from the content-addressed store, hash-verified

5221 )
5222
5223 def write(self, buf: WriteBuffer) -> None:
5224 write_tag(buf, SCC_REQUEST_MESSAGE)
5225 write_int_list(buf, self.scc_ids)
5226 write_int_bare(buf, len(self.import_errors))
5227 for path, errors in self.import_errors.items():
5228 write_str(buf, path)
5229 write_int_bare(buf, len(errors))
5230 for error in errors:
5231 error.write(buf)
5232 write_int_bare(buf, len(self.mod_data))
5233 for mod, (suppressed_deps_opts, raw_data) in self.mod_data.items():
5234 write_str_bare(buf, mod)
5235 write_bytes(buf, suppressed_deps_opts)
5236 if raw_data is None:
5237 write_bool(buf, False)
5238 else:
5239 write_bool(buf, True)
5240 raw_data.write(buf)
5241
5242
5243class ModuleResult:

Callers

nothing calls this directly

Calls 6

write_int_listFunction · 0.90
write_strFunction · 0.90
write_bytesFunction · 0.90
lenFunction · 0.85
itemsMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected