(s: str)
| 37 | # Example: '4x2' returns (4,2) |
| 38 | |
| 39 | def parse_tuple(s: str) -> Tuple[int, int]: |
| 40 | m = re.match(r'^(\d+)[x,](\d+)$', s) |
| 41 | if m: |
| 42 | return int(m.group(1)), int(m.group(2)) |
| 43 | raise click.ClickException(f'cannot parse tuple {s}') |
| 44 | |
| 45 | #---------------------------------------------------------------------------- |
| 46 |
nothing calls this directly
no outgoing calls
no test coverage detected