MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / __sub__

Method __sub__

src/pendulum/interval.py:324–325  ·  view source on GitHub ↗
(self, other: timedelta)

Source from the content-addressed store, hash-verified

322 __radd__ = __add__ # type: ignore[assignment]
323
324 def __sub__(self, other: timedelta) -> Duration: # type: ignore[override]
325 return self.as_duration().__sub__(other)
326
327 def __neg__(self) -> Self:
328 return self.__class__(self.end, self.start, self._absolute)

Callers

nothing calls this directly

Calls 1

as_durationMethod · 0.95

Tested by

no test coverage detected