(cls, data: JsonDict)
| 1118 | |
| 1119 | @classmethod |
| 1120 | def deserialize(cls, data: JsonDict) -> UnboundType: |
| 1121 | assert data[".class"] == "UnboundType" |
| 1122 | return UnboundType( |
| 1123 | data["name"], |
| 1124 | [deserialize_type(a) for a in data["args"]], |
| 1125 | original_str_expr=data["expr"], |
| 1126 | original_str_fallback=data["expr_fallback"], |
| 1127 | ) |
| 1128 | |
| 1129 | def write(self, data: WriteBuffer) -> None: |
| 1130 | write_tag(data, UNBOUND_TYPE) |
nothing calls this directly
no test coverage detected