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

Method __divmod__

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

Source from the content-addressed store, hash-verified

356 return self.as_duration().__mod__(other)
357
358 def __divmod__(self, other: timedelta) -> tuple[int, Duration]:
359 return self.as_duration().__divmod__(other)
360
361 def __abs__(self) -> Self:
362 return self.__class__(self.start, self.end, absolute=True)

Callers

nothing calls this directly

Calls 1

as_durationMethod · 0.95

Tested by

no test coverage detected