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

Function add_duration

src/pendulum/helpers.py:59–69  ·  view source on GitHub ↗
(
    dt: _DT,
    years: int = 0,
    months: int = 0,
    weeks: int = 0,
    days: int = 0,
    hours: int = 0,
    minutes: int = 0,
    seconds: float = 0,
    microseconds: int = 0,
)

Source from the content-addressed store, hash-verified

57
58@overload
59def add_duration(
60 dt: _DT,
61 years: int = 0,
62 months: int = 0,
63 weeks: int = 0,
64 days: int = 0,
65 hours: int = 0,
66 minutes: int = 0,
67 seconds: float = 0,
68 microseconds: int = 0,
69) -> _DT: ...
70
71
72@overload

Callers 2

addMethod · 0.90
addMethod · 0.90

Calls 3

is_leapFunction · 0.90
_signFunction · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…