mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-02 21:02:37 +00:00
## Summary The parser now uses the raw source code as global context and slices into it to parse debug text. It turns out we were always passing in the _old_ source code, so when code was fixed, we were making invalid accesses. This PR modifies the call to use the _fixed_ source code, which will always be consistent with the tokens. Closes https://github.com/astral-sh/ruff/issues/7711. ## Test Plan `cargo test` |
||
|---|---|---|
| .. | ||
| allow_nested_overload.py | ||
| allow_overload.py | ||
| allow_star_arg_any.py | ||
| annotation_presence.py | ||
| ignore_fully_untyped.py | ||
| mypy_init_return.py | ||
| simple_magic_methods.py | ||
| suppress_dummy_args.py | ||
| suppress_none_returning.py | ||