mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
allow test node after ** in calls (closes #24176)
This commit is contained in:
parent
8de32d906f
commit
de12b79cd6
4 changed files with 7 additions and 10 deletions
|
@ -2871,7 +2871,7 @@ validate_argument(node *tree)
|
|||
|
||||
if (res) {
|
||||
if (TYPE(CHILD(tree, 0)) == DOUBLESTAR) {
|
||||
res = validate_expr(CHILD(tree, 1));
|
||||
res = validate_test(CHILD(tree, 1));
|
||||
}
|
||||
else if (nch == 1) {
|
||||
res = validate_test_or_star_expr(CHILD(tree, 0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue