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

Method deserialize

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

Source from the content-addressed store, hash-verified

955
956 @classmethod
957 def deserialize(cls, data: JsonDict) -> TypeVarTupleType:
958 assert data[".class"] == "TypeVarTupleType"
959 return TypeVarTupleType(
960 data["name"],
961 data["fullname"],
962 TypeVarId(data["id"], namespace=data["namespace"]),
963 deserialize_type(data["upper_bound"]),
964 Instance.deserialize(data["tuple_fallback"]),
965 deserialize_type(data["default"]),
966 min_len=data["min_len"],
967 )
968
969 def write(self, data: WriteBuffer) -> None:
970 write_tag(data, TYPE_VAR_TUPLE_TYPE)

Callers

nothing calls this directly

Calls 4

TypeVarTupleTypeClass · 0.85
TypeVarIdClass · 0.85
deserialize_typeFunction · 0.70
deserializeMethod · 0.45

Tested by

no test coverage detected