(self, other: timedelta)
| 368 | return self.__repr__() |
| 369 | |
| 370 | def _cmp(self, other: timedelta) -> int: |
| 371 | # Only needed for PyPy |
| 372 | assert isinstance(other, timedelta) |
| 373 | |
| 374 | if isinstance(other, Interval): |
| 375 | other = other.as_timedelta() |
| 376 | |
| 377 | td = self.as_timedelta() |
| 378 | |
| 379 | return 0 if td == other else 1 if td > other else -1 |
| 380 | |
| 381 | def _getstate(self, protocol: SupportsIndex = 3) -> tuple[_T, _T, bool]: |
| 382 | start, end = self.start, self.end |
nothing calls this directly
no test coverage detected