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

Method deserialize

mypy/nodes.py:3369–3378  ·  view source on GitHub ↗
(cls, data: JsonDict)

Source from the content-addressed store, hash-verified

3367
3368 @classmethod
3369 def deserialize(cls, data: JsonDict) -> TypeVarTupleExpr:
3370 assert data[".class"] == "TypeVarTupleExpr"
3371 return TypeVarTupleExpr(
3372 data["name"],
3373 data["fullname"],
3374 mypy.types.deserialize_type(data["upper_bound"]),
3375 mypy.types.Instance.deserialize(data["tuple_fallback"]),
3376 mypy.types.deserialize_type(data["default"]),
3377 data["variance"],
3378 )
3379
3380 def write(self, data: WriteBuffer) -> None:
3381 write_tag(data, TYPE_VAR_TUPLE_EXPR)

Callers

nothing calls this directly

Calls 2

TypeVarTupleExprClass · 0.85
deserializeMethod · 0.45

Tested by

no test coverage detected