| 281 | |
| 282 | |
| 283 | class Repeat1(Repeat): |
| 284 | def __str__(self) -> str: |
| 285 | s = str(self.node) |
| 286 | # TODO: Decide whether to use (X)+ or X+ based on type of X |
| 287 | if " " in s: |
| 288 | return f"({s})+" |
| 289 | else: |
| 290 | return f"{s}+" |
| 291 | |
| 292 | def __repr__(self) -> str: |
| 293 | return f"Repeat1({self.node!r})" |
| 294 | |
| 295 | |
| 296 | class Gather(Repeat): |
no outgoing calls
no test coverage detected
searching dependent graphs…