Return the count of leading whitespace columns on `line` (tabs count as one column — the codebase uses spaces, so this is a simple len-diff).
(line: str)
| 615 | |
| 616 | |
| 617 | def _line_indent(line: str) -> int: |
| 618 | """Return the count of leading whitespace columns on `line` (tabs count |
| 619 | as one column — the codebase uses spaces, so this is a simple len-diff).""" |
| 620 | return len(line) - len(line.lstrip()) |
| 621 | |
| 622 | |
| 623 | def _find_brace_free_body_end(lines: list[str], control_idx: int) -> int | None: |
no outgoing calls
no test coverage detected