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

Method serialize

mypyc/ir/rtypes.py:801–803  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

799 return hash((self.name, self.types))
800
801 def serialize(self) -> JsonDict:
802 types = [x.serialize() for x in self.types]
803 return {".class": "RTuple", "types": types}
804
805 @classmethod
806 def deserialize(cls, data: JsonDict, ctx: DeserMaps) -> RTuple:

Callers

nothing calls this directly

Calls 1

serializeMethod · 0.45

Tested by

no test coverage detected