| 980 | |
| 981 | @classmethod |
| 982 | def read(cls, data: ReadBuffer) -> TypeVarTupleType: |
| 983 | assert read_tag(data) == INSTANCE |
| 984 | fallback = Instance.read(data) |
| 985 | ret = TypeVarTupleType( |
| 986 | read_str(data), |
| 987 | read_str(data), |
| 988 | TypeVarId(read_int(data), namespace=read_str(data)), |
| 989 | read_type(data), |
| 990 | fallback, |
| 991 | read_type(data), |
| 992 | min_len=read_int(data), |
| 993 | ) |
| 994 | assert read_tag(data) == END_TAG |
| 995 | return ret |
| 996 | |
| 997 | def accept(self, visitor: TypeVisitor[T]) -> T: |
| 998 | return visitor.visit_type_var_tuple(self) |