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

Method deserialize

mypy/types.py:2837–2843  ·  view source on GitHub ↗
(cls, data: JsonDict)

Source from the content-addressed store, hash-verified

2835
2836 @classmethod
2837 def deserialize(cls, data: JsonDict) -> TupleType:
2838 assert data[".class"] == "TupleType"
2839 return TupleType(
2840 [deserialize_type(t) for t in data["items"]],
2841 Instance.deserialize(data["partial_fallback"]),
2842 implicit=data["implicit"],
2843 )
2844
2845 def write(self, data: WriteBuffer) -> None:
2846 write_tag(data, TUPLE_TYPE)

Callers

nothing calls this directly

Calls 3

TupleTypeClass · 0.85
deserialize_typeFunction · 0.70
deserializeMethod · 0.45

Tested by

no test coverage detected