MCPcopy Create free account
hub / github.com/celery/celery / _range_steps

Method _range_steps

celery/schedules.py:316–319  ·  view source on GitHub ↗
(self, toks: Sequence[str])

Source from the content-addressed store, hash-verified

314 return [fr]
315
316 def _range_steps(self, toks: Sequence[str]) -> list[int]:
317 if len(toks) != 3 or not toks[2]:
318 raise self.ParseException('empty filter')
319 return self._expand_range(toks[:2])[::int(toks[2])]
320
321 def _star_steps(self, toks: Sequence[str]) -> list[int]:
322 if not toks or not toks[0]:

Callers 1

Calls 1

_expand_rangeMethod · 0.95

Tested by 1