mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-35814: Allow unpacking in r.h.s of annotated assignment expressions (GH-13760)
This commit is contained in:
parent
d9677f36fe
commit
8565f6b6db
5 changed files with 9 additions and 3 deletions
|
@ -3398,7 +3398,7 @@ ast_for_expr_stmt(struct compiling *c, const node *n)
|
|||
}
|
||||
else {
|
||||
ch = CHILD(ann, 3);
|
||||
if (TYPE(ch) == testlist) {
|
||||
if (TYPE(ch) == testlist_star_expr) {
|
||||
expr3 = ast_for_testlist(c, ch);
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -742,7 +742,7 @@ static const arc arcs_17_2[2] = {
|
|||
{0, 2},
|
||||
};
|
||||
static const arc arcs_17_3[2] = {
|
||||
{47, 4},
|
||||
{81, 4},
|
||||
{84, 4},
|
||||
};
|
||||
static const arc arcs_17_4[1] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue