ruff/crates/ruff_linter/resources/test/fixtures/flake8_annotations
Charlie Marsh b5280061f8
Use fixed source code for parser context (#7717)
## 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`
2023-09-29 14:10:32 -04:00
..
allow_nested_overload.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
allow_overload.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
allow_star_arg_any.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
annotation_presence.py Use fixed source code for parser context (#7717) 2023-09-29 14:10:32 -04:00
ignore_fully_untyped.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
mypy_init_return.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
simple_magic_methods.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
suppress_dummy_args.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
suppress_none_returning.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00