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

Method invert

src/pendulum/duration.py:220–224  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

218
219 @property
220 def invert(self) -> bool:
221 if self._invert is None:
222 self._invert = self.total_seconds() < 0
223
224 return self._invert
225
226 def in_weeks(self) -> int:
227 return int(self.total_weeks())

Callers

nothing calls this directly

Calls 1

total_secondsMethod · 0.95

Tested by

no test coverage detected