(self)
| 1560 | return f"ExtraAttrs({self.attrs!r}, {self.immutable!r}, {self.mod_name!r})" |
| 1561 | |
| 1562 | def serialize(self) -> JsonDict: |
| 1563 | return { |
| 1564 | ".class": "ExtraAttrs", |
| 1565 | "attrs": {k: v.serialize() for k, v in self.attrs.items()}, |
| 1566 | "immutable": sorted(self.immutable), |
| 1567 | "mod_name": self.mod_name, |
| 1568 | } |
| 1569 | |
| 1570 | @classmethod |
| 1571 | def deserialize(cls, data: JsonDict) -> ExtraAttrs: |