mirror of
https://github.com/astral-sh/ruff
synced 2026-01-08 15:14:19 -05:00
Fix locations of parethesized expressions
This commit is contained in:
@@ -1090,7 +1090,7 @@ AtomAs<Goal>: Goal = {
|
||||
node: ast::ExprKind::ListComp { elt: Box::new(elt), generators }
|
||||
}.into()
|
||||
},
|
||||
"(" <location:@L> <items:OneOrMore<TestOrStarNamedExprOrWithitem>> <trailing_comma:","?> <end_location:@R> ")" =>? {
|
||||
<location:@L> "(" <items:OneOrMore<TestOrStarNamedExprOrWithitem>> <trailing_comma:","?> ")" <end_location:@R> =>? {
|
||||
if items.len() == 1 && items[0].1.is_none() && trailing_comma.is_none() {
|
||||
match items[0].0.node {
|
||||
ast::ExprKind::Starred { .. } => {
|
||||
|
||||
Reference in New Issue
Block a user