Signed curly-brace count on a raw string, ignoring strings/comments.
(line: str)
| 223 | |
| 224 | |
| 225 | def _brace_delta_raw(line: str) -> int: |
| 226 | """Signed curly-brace count on a raw string, ignoring strings/comments.""" |
| 227 | sanitized = _strip_strings_and_comments(line) |
| 228 | return sanitized.count("{") - sanitized.count("}") |
| 229 | |
| 230 | |
| 231 | def _has_trailing_operator(line: str, is_inner: bool) -> bool: |
no test coverage detected