diff --git a/ruff_python_parser/src/python.lalrpop b/ruff_python_parser/src/python.lalrpop index ff7f87ae..9b5bab64 100644 --- a/ruff_python_parser/src/python.lalrpop +++ b/ruff_python_parser/src/python.lalrpop @@ -1029,7 +1029,7 @@ FuncDef: ast::Stmt = { TypeAliasName: ast::Expr = { => ast::Expr::Name( - ast::ExprName { id: name.into(), ctx: ast::ExprContext::Load, range: (location..end_location).into() }, + ast::ExprName { id: name.into(), ctx: ast::ExprContext::Store, range: (location..end_location).into() }, ), } diff --git a/ruff_python_parser/src/python.rs b/ruff_python_parser/src/python.rs index a1746c0c..cf1eafd8 100644 --- a/ruff_python_parser/src/python.rs +++ b/ruff_python_parser/src/python.rs @@ -1,5 +1,5 @@ // auto-generated: "lalrpop 0.20.0" -// sha3: bfe8038efa3e290b9841ea2f84a2278ded65476a00892aa448e9708655ccb86d +// sha3: 9c49dc85355275f274dcc32e163c443c0dc567214c9725547e2218e9acd22577 use num_bigint::BigInt; use ruff_text_size::TextSize; use ruff_python_ast::{self as ast, Ranged, MagicKind}; @@ -33544,7 +33544,7 @@ fn __action163< ) -> ast::Expr { ast::Expr::Name( - ast::ExprName { id: name.into(), ctx: ast::ExprContext::Load, range: (location..end_location).into() }, + ast::ExprName { id: name.into(), ctx: ast::ExprContext::Store, range: (location..end_location).into() }, ) }