(self)
| 247 | return self |
| 248 | |
| 249 | def current(self) -> str: |
| 250 | if self.index == -1: |
| 251 | raise ValueError("No current match.") |
| 252 | return self.matches[self.index] |
| 253 | |
| 254 | def __next__(self) -> str: |
| 255 | self.index = (self.index + 1) % len(self.matches) |
no outgoing calls