mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-24 20:34:53 +00:00
Add support for trailing colons in slice expressions (#3077)
This commit is contained in:
parent
7d4e513a82
commit
ce8953442d
5 changed files with 29 additions and 2 deletions
|
@ -70,6 +70,7 @@ mod tests {
|
|||
#[test_case(Path::new("simple_cases/beginning_backslash.py"); "beginning_backslash")]
|
||||
#[test_case(Path::new("simple_cases/import_spacing.py"); "import_spacing")]
|
||||
#[test_case(Path::new("simple_cases/power_op_spacing.py"); "power_op_spacing")]
|
||||
#[test_case(Path::new("simple_cases/slices.py"); "slices")]
|
||||
fn passing(path: &Path) -> Result<()> {
|
||||
let snapshot = format!("{}", path.display());
|
||||
let content = std::fs::read_to_string(test_resource_path(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue