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

Method serialize

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

Source from the content-addressed store, hash-verified

1163 return hash(("union", self.items_set))
1164
1165 def serialize(self) -> JsonDict:
1166 types = [x.serialize() for x in self.items]
1167 return {".class": "RUnion", "types": types}
1168
1169 @classmethod
1170 def deserialize(cls, data: JsonDict, ctx: DeserMaps) -> RUnion:

Callers

nothing calls this directly

Calls 1

serializeMethod · 0.45

Tested by

no test coverage detected