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

Method __add__

src/pendulum/date.py:253–257  ·  view source on GitHub ↗
(self, other: timedelta)

Source from the content-addressed store, hash-verified

251 return self.subtract(days=delta.days)
252
253 def __add__(self, other: timedelta) -> Self:
254 if not isinstance(other, timedelta):
255 return NotImplemented
256
257 return self._add_timedelta(other)
258
259 @overload # type: ignore[override] # this is only needed because of Python 3.7
260 def __sub__(self, __delta: timedelta) -> Self: ...

Callers

nothing calls this directly

Calls 1

_add_timedeltaMethod · 0.95

Tested by

no test coverage detected