mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 13:30:49 -05:00
- Adds `Tokens::split_at()` to get tokens before/after an offset. - Updates `Suppressions::load_from_tokens` to take an `Indexer` and use comment ranges to minimize the need for walking tokens looking for indent/dedent. Adapted from https://github.com/astral-sh/ruff/pull/21441#pullrequestreview-3503773083 Fixes #22087