ruff
f267aed0 - [ty] Fix panic for annotation pointing at leading whitespace (#23458)

Commit
2 days ago
[ty] Fix panic for annotation pointing at leading whitespace (#23458) ## Summary When a diagnostic annotation pointed at indentation (e.g., an "unexpected indentation" error), `whitespace_left` could exceed `span_left`, causing a subtraction overflow in `Margin::compute`. Closes https://github.com/astral-sh/ty/issues/836.
Author
Parents
Loading