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

Method __init__

celery/schedules.py:281–289  ·  view source on GitHub ↗
(self, max_: int = 60, min_: int = 0)

Source from the content-addressed store, hash-verified

279 _star = r'\*'
280
281 def __init__(self, max_: int = 60, min_: int = 0):
282 self.max_ = max_
283 self.min_ = min_
284 self.pats: tuple[tuple[re.Pattern, Callable], ...] = (
285 (re.compile(self._range + self._steps), self._range_steps),
286 (re.compile(self._range), self._expand_range),
287 (re.compile(self._star + self._steps), self._star_steps),
288 (re.compile('^' + self._star + '$'), self._expand_star),
289 )
290
291 def parse(self, spec: str) -> set[int]:
292 acc = set()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected