(expr: str, start: int)
| 1115 | |
| 1116 | |
| 1117 | def _parse_group_argument(expr: str, start: int) -> int | None: |
| 1118 | idx = start |
| 1119 | while idx < len(expr) and expr[idx].isspace(): |
| 1120 | idx += 1 |
| 1121 | if idx >= len(expr) or expr[idx] != "{": |
| 1122 | return None |
| 1123 | depth = 0 |
| 1124 | while idx < len(expr): |
| 1125 | if expr[idx] == "{": |
| 1126 | depth += 1 |
| 1127 | elif expr[idx] == "}": |
| 1128 | depth -= 1 |
| 1129 | if depth == 0: |
| 1130 | return idx + 1 |
| 1131 | idx += 1 |
| 1132 | return None |
| 1133 | |
| 1134 | |
| 1135 | def _has_invalid_frac_arguments(expr: str) -> bool: |
no outgoing calls
no test coverage detected