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

Method __add__

src/pendulum/duration.py:332–336  ·  view source on GitHub ↗
(self, other: timedelta)

Source from the content-addressed store, hash-verified

330 return rep.replace(", )", ")")
331
332 def __add__(self, other: timedelta) -> Self:
333 if isinstance(other, timedelta):
334 return self.__class__(seconds=self.total_seconds() + other.total_seconds())
335
336 return NotImplemented
337
338 __radd__ = __add__
339

Callers

nothing calls this directly

Calls 1

total_secondsMethod · 0.95

Tested by

no test coverage detected