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

Method deserialize

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

Source from the content-addressed store, hash-verified

1118
1119 @classmethod
1120 def deserialize(cls, data: JsonDict) -> UnboundType:
1121 assert data[".class"] == "UnboundType"
1122 return UnboundType(
1123 data["name"],
1124 [deserialize_type(a) for a in data["args"]],
1125 original_str_expr=data["expr"],
1126 original_str_fallback=data["expr_fallback"],
1127 )
1128
1129 def write(self, data: WriteBuffer) -> None:
1130 write_tag(data, UNBOUND_TYPE)

Callers

nothing calls this directly

Calls 2

UnboundTypeClass · 0.85
deserialize_typeFunction · 0.70

Tested by

no test coverage detected