mirror of
https://github.com/astral-sh/ruff
synced 2026-01-09 15:44:22 -05:00
Fix IfExp location
This commit is contained in:
@@ -731,7 +731,7 @@ YieldExpr: ast::Expr = {
|
||||
};
|
||||
|
||||
Test<Goal>: ast::Expr = {
|
||||
<body:OrTest<"all">> <location:@L> "if" <test:OrTest<"all">> "else" <orelse:Test<"all">> <end_location:@R> => ast::Expr {
|
||||
<location:@L> <body:OrTest<"all">> "if" <test:OrTest<"all">> "else" <orelse:Test<"all">> <end_location:@R> => ast::Expr {
|
||||
location,
|
||||
end_location: Some(end_location),
|
||||
custom: (),
|
||||
|
||||
Reference in New Issue
Block a user