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

Method __add__

src/pendulum/time.py:164–168  ·  view source on GitHub ↗
(self, other: datetime.timedelta)

Source from the content-addressed store, hash-verified

162 return self.subtract(seconds=delta.seconds, microseconds=delta.microseconds)
163
164 def __add__(self, other: datetime.timedelta) -> Time:
165 if not isinstance(other, timedelta):
166 return NotImplemented
167
168 return self.add_timedelta(other)
169
170 @overload
171 def __sub__(self, other: time) -> pendulum.Duration: ...

Callers 2

fromutcMethod · 0.45
test_add_unsupportedFunction · 0.45

Calls 1

add_timedeltaMethod · 0.95

Tested by 1

test_add_unsupportedFunction · 0.36