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

Method write

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

Source from the content-addressed store, hash-verified

901 return res
902
903 def write(self, data: WriteBuffer) -> None:
904 write_tag(data, OVERLOADED_FUNC_DEF)
905 write_tag(data, LIST_GEN)
906 write_int_bare(data, len(self.items))
907 for item in self.items:
908 item.write(data)
909 mypy.types.write_type_opt(data, self.type)
910 write_str(data, self._fullname)
911 if self.impl is None:
912 write_tag(data, LITERAL_NONE)
913 else:
914 self.impl.write(data)
915 write_flags(data, [self.is_property, self.is_class, self.is_static, self.is_final])
916 write_str_opt(data, self.deprecated)
917 write_int_opt(data, self.setter_index)
918 write_tag(data, END_TAG)
919
920 @classmethod
921 def read(cls, data: ReadBuffer) -> OverloadedFuncDef:

Callers

nothing calls this directly

Calls 6

write_strFunction · 0.90
write_str_optFunction · 0.90
write_int_optFunction · 0.90
lenFunction · 0.85
write_flagsFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected