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

Method __iter__

src/pendulum/interval.py:313–314  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

311 return Duration(seconds=self.total_seconds())
312
313 def __iter__(self) -> Iterator[_T]:
314 return self.range("days")
315
316 def __contains__(self, item: _T) -> bool:
317 return self.start <= item <= self.end

Callers

nothing calls this directly

Calls 1

rangeMethod · 0.95

Tested by

no test coverage detected