(cls, data: JsonDict)
| 955 | |
| 956 | @classmethod |
| 957 | def deserialize(cls, data: JsonDict) -> TypeVarTupleType: |
| 958 | assert data[".class"] == "TypeVarTupleType" |
| 959 | return TypeVarTupleType( |
| 960 | data["name"], |
| 961 | data["fullname"], |
| 962 | TypeVarId(data["id"], namespace=data["namespace"]), |
| 963 | deserialize_type(data["upper_bound"]), |
| 964 | Instance.deserialize(data["tuple_fallback"]), |
| 965 | deserialize_type(data["default"]), |
| 966 | min_len=data["min_len"], |
| 967 | ) |
| 968 | |
| 969 | def write(self, data: WriteBuffer) -> None: |
| 970 | write_tag(data, TYPE_VAR_TUPLE_TYPE) |
nothing calls this directly
no test coverage detected