From dbe60ee09dc5a624cfb78dff61ecf050a5b3f105 Mon Sep 17 00:00:00 2001 From: Brandt Bucher Date: Thu, 29 Apr 2021 17:19:28 -0700 Subject: bpo-43892: Validate the first term of complex literal value patterns (GH-25735) --- Python/ast_opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/ast_opt.c') diff --git a/Python/ast_opt.c b/Python/ast_opt.c index 254dd646c4..c1fdea3a88 100644 --- a/Python/ast_opt.c +++ b/Python/ast_opt.c @@ -825,7 +825,7 @@ astfold_pattern(pattern_ty node_, PyArena *ctx_, _PyASTOptimizeState *state) break; case MatchAs_kind: if (node_->v.MatchAs.pattern) { - CALL(astfold_pattern, expr_ty, node_->v.MatchAs.pattern); + CALL(astfold_pattern, pattern_ty, node_->v.MatchAs.pattern); } break; case MatchOr_kind: -- cgit v1.2.3