mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
bpo-43892: Validate the first term of complex literal value patterns (GH-25735)
This commit is contained in:
parent
87655e2cf5
commit
dbe60ee09d
8 changed files with 595 additions and 441 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue