mirror of
https://github.com/astral-sh/ruff
synced 2026-01-08 15:14:19 -05:00
Allow starred expressions in subscripts
This commit is contained in:
@@ -1037,7 +1037,7 @@ SubscriptList: ast::Expr = {
|
||||
};
|
||||
|
||||
Subscript: ast::Expr = {
|
||||
NamedExpressionTest,
|
||||
TestOrStarNamedExpr,
|
||||
<location:@L> <e1:Test<"all">?> ":" <e2:Test<"all">?> <e3:SliceOp?> <end_location:@R> => {
|
||||
let lower = e1.map(Box::new);
|
||||
let upper = e2.map(Box::new);
|
||||
|
||||
Reference in New Issue
Block a user