(self, spec: str)
| 289 | ) |
| 290 | |
| 291 | def parse(self, spec: str) -> set[int]: |
| 292 | acc = set() |
| 293 | for part in spec.split(','): |
| 294 | if not part: |
| 295 | raise self.ParseException('empty part') |
| 296 | acc |= set(self._parse_part(part)) |
| 297 | return acc |
| 298 | |
| 299 | def _parse_part(self, part: str) -> list[int]: |
| 300 | for regex, handler in self.pats: |
no test coverage detected