(expr: str)
| 1103 | |
| 1104 | |
| 1105 | def _find_unbalanced_braces(expr: str) -> bool: |
| 1106 | depth = 0 |
| 1107 | for char in expr: |
| 1108 | if char == "{": |
| 1109 | depth += 1 |
| 1110 | elif char == "}": |
| 1111 | depth -= 1 |
| 1112 | if depth < 0: |
| 1113 | return True |
| 1114 | return depth != 0 |
| 1115 | |
| 1116 | |
| 1117 | def _parse_group_argument(expr: str, start: int) -> int | None: |
no outgoing calls
no test coverage detected