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

Method deserialize

mypyc/ir/rtypes.py:1170–1172  ·  view source on GitHub ↗
(cls, data: JsonDict, ctx: DeserMaps)

Source from the content-addressed store, hash-verified

1168
1169 @classmethod
1170 def deserialize(cls, data: JsonDict, ctx: DeserMaps) -> RUnion:
1171 types = [deserialize_type(t, ctx) for t in data["types"]]
1172 return RUnion(types)
1173
1174
1175def flatten_nested_unions(types: list[RType]) -> list[RType]:

Callers

nothing calls this directly

Calls 2

RUnionClass · 0.85
deserialize_typeFunction · 0.70

Tested by

no test coverage detected