(cls, data: JsonDict)
| 717 | |
| 718 | @classmethod |
| 719 | def deserialize(cls, data: JsonDict) -> TypeVarType: |
| 720 | assert data[".class"] == "TypeVarType" |
| 721 | return TypeVarType( |
| 722 | name=data["name"], |
| 723 | fullname=data["fullname"], |
| 724 | id=TypeVarId(data["id"], namespace=data["namespace"]), |
| 725 | values=[deserialize_type(v) for v in data["values"]], |
| 726 | upper_bound=deserialize_type(data["upper_bound"]), |
| 727 | default=deserialize_type(data["default"]), |
| 728 | variance=data["variance"], |
| 729 | ) |
| 730 | |
| 731 | def write(self, data: WriteBuffer) -> None: |
| 732 | write_tag(data, TYPE_VAR_TYPE) |
nothing calls this directly
no test coverage detected