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

Method write

mypy/types.py:3290–3294  ·  view source on GitHub ↗
(self, data: WriteBuffer)

Source from the content-addressed store, hash-verified

3288 return LiteralType(value=data["value"], fallback=Instance.deserialize(data["fallback"]))
3289
3290 def write(self, data: WriteBuffer) -> None:
3291 write_tag(data, LITERAL_TYPE)
3292 self.fallback.write(data)
3293 write_literal(data, self.value)
3294 write_tag(data, END_TAG)
3295
3296 @classmethod
3297 def read(cls, data: ReadBuffer) -> LiteralType:

Callers

nothing calls this directly

Calls 2

write_literalFunction · 0.90
writeMethod · 0.45

Tested by

no test coverage detected