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

Method write

mypy/nodes.py:594–602  ·  view source on GitHub ↗
(self, data: WriteBuffer)

Source from the content-addressed store, hash-verified

592 return tree
593
594 def write(self, data: WriteBuffer) -> None:
595 write_tag(data, MYPY_FILE)
596 write_str(data, self._fullname)
597 self.names.write(data, self._fullname)
598 write_bool(data, self.is_stub)
599 write_str(data, self.path)
600 write_bool(data, self.is_partial_stub_package)
601 write_str_list(data, sorted(self.future_import_flags))
602 write_tag(data, END_TAG)
603
604 @classmethod
605 def read(cls, data: ReadBuffer) -> MypyFile:

Callers

nothing calls this directly

Calls 4

write_strFunction · 0.90
write_str_listFunction · 0.90
sortedFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected