(cls, data: JsonDict)
| 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) |
nothing calls this directly
no test coverage detected