(self, other: object)
| 34 | return f"Literal(value={self.value})" |
| 35 | |
| 36 | def __eq__(self, other: object) -> bool: |
| 37 | if not isinstance(other, self.__class__): |
| 38 | return NotImplemented |
| 39 | return self.value == other.value |
| 40 | |
| 41 | def __hash__(self) -> int: |
| 42 | return hash((self.__class__, self.value)) |