mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-22 14:34:21 +08:00
This update includes some missing `^` in the diagnostic annotations. This update also includes some shifting of "syntax error" annotations to the end of the preceding line. I believe this is technically a regression, but fixing them has proven quite difficult. I *think* the best way to do that might be to tweak the spans generated by the Python parser errors, but I didn't want to dig into that. (Another approach would be to change the `annotate-snippets` rendering, but when I tried that and managed to fix these regressions, I ended up causing a bunch of other regressions.) Ref https://github.com/astral-sh/ruff/pull/15359/commits/77d454525e26270964183fa08d3f310ef2119d43#r1915458616