mirror of
https://github.com/astral-sh/ruff
synced 2026-01-09 23:54:36 -05:00
Set comparator start location to beginning of comparison
This commit is contained in:
@@ -800,7 +800,7 @@ NotTest: ast::Expr = {
|
||||
};
|
||||
|
||||
Comparison: ast::Expr = {
|
||||
<left:Expression> <location:@L> <comparisons:(CompOp Expression)+> <end_location:@R> => {
|
||||
<location:@L> <left:Expression> <comparisons:(CompOp Expression)+> <end_location:@R> => {
|
||||
let (ops, comparators) = comparisons.into_iter().unzip();
|
||||
ast::Expr {
|
||||
location,
|
||||
|
||||
Reference in New Issue
Block a user