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

Method deserialize

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

Source from the content-addressed store, hash-verified

717
718 @classmethod
719 def deserialize(cls, data: JsonDict) -> TypeVarType:
720 assert data[".class"] == "TypeVarType"
721 return TypeVarType(
722 name=data["name"],
723 fullname=data["fullname"],
724 id=TypeVarId(data["id"], namespace=data["namespace"]),
725 values=[deserialize_type(v) for v in data["values"]],
726 upper_bound=deserialize_type(data["upper_bound"]),
727 default=deserialize_type(data["default"]),
728 variance=data["variance"],
729 )
730
731 def write(self, data: WriteBuffer) -> None:
732 write_tag(data, TYPE_VAR_TYPE)

Callers

nothing calls this directly

Calls 3

TypeVarTypeClass · 0.85
TypeVarIdClass · 0.85
deserialize_typeFunction · 0.70

Tested by

no test coverage detected