(self, other: object)
| 400 | return hash((self.start, self.end, self._absolute)) |
| 401 | |
| 402 | def __eq__(self, other: object) -> bool: |
| 403 | if isinstance(other, Interval): |
| 404 | return (self.start, self.end, self._absolute) == ( |
| 405 | other.start, |
| 406 | other.end, |
| 407 | other._absolute, |
| 408 | ) |
| 409 | else: |
| 410 | return self.as_duration() == other |
| 411 | |
| 412 | def __ne__(self, other: object) -> bool: |
| 413 | return not self.__eq__(other) |