(self)
| 427 | return self.alias == other.alias and self.args == other.args |
| 428 | |
| 429 | def serialize(self) -> JsonDict: |
| 430 | assert self.alias is not None |
| 431 | data: JsonDict = { |
| 432 | ".class": "TypeAliasType", |
| 433 | "type_ref": self.alias.fullname, |
| 434 | "args": [arg.serialize() for arg in self.args], |
| 435 | } |
| 436 | return data |
| 437 | |
| 438 | @classmethod |
| 439 | def deserialize(cls, data: JsonDict) -> TypeAliasType: |