(self, minute: Cronspec = '*', hour: Cronspec = '*', day_of_week: Cronspec = '*',
day_of_month: Cronspec = '*', month_of_year: Cronspec = '*', **kwargs: Any)
| 433 | """ |
| 434 | |
| 435 | def __init__(self, minute: Cronspec = '*', hour: Cronspec = '*', day_of_week: Cronspec = '*', |
| 436 | day_of_month: Cronspec = '*', month_of_year: Cronspec = '*', **kwargs: Any) -> None: |
| 437 | self._orig_minute = cronfield(minute) |
| 438 | self._orig_hour = cronfield(hour) |
| 439 | self._orig_day_of_week = cronfield(day_of_week) |
| 440 | self._orig_day_of_month = cronfield(day_of_month) |
| 441 | self._orig_month_of_year = cronfield(month_of_year) |
| 442 | self._orig_kwargs = kwargs |
| 443 | self.hour = self._expand_cronspec(hour, 24) |
| 444 | self.minute = self._expand_cronspec(minute, 60) |
| 445 | self.day_of_week = self._expand_cronspec(day_of_week, 7) |
| 446 | self.day_of_month = self._expand_cronspec(day_of_month, 31, 1) |
| 447 | self.month_of_year = self._expand_cronspec(month_of_year, 12, 1) |
| 448 | if not any(day <= CRON_DAYS_IN_MONTH[month] |
| 449 | for month in self.month_of_year |
| 450 | for day in self.day_of_month): |
| 451 | raise ValueError(CRON_INVALID_DATE.format( |
| 452 | day_of_month=self._orig_day_of_month, |
| 453 | month_of_year=self._orig_month_of_year, |
| 454 | )) |
| 455 | super().__init__(**kwargs) |
| 456 | |
| 457 | @classmethod |
| 458 | def from_string(cls, crontab: str) -> crontab: |
nothing calls this directly
no test coverage detected