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

Method deserialize

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

Source from the content-addressed store, hash-verified

1252
1253 @classmethod
1254 def deserialize(cls, data: JsonDict) -> UnpackType:
1255 assert data[".class"] == "UnpackType"
1256 typ = data["type"]
1257 return UnpackType(deserialize_type(typ))
1258
1259 def __hash__(self) -> int:
1260 return hash(self.type)

Callers

nothing calls this directly

Calls 2

UnpackTypeClass · 0.85
deserialize_typeFunction · 0.70

Tested by

no test coverage detected