File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1447,8 +1447,8 @@ invalid_import_from_targets:
14471447 RAISE_SYNTAX_ERROR_STARTING_FROM(token, "Expected one or more names after 'import'") }
14481448
14491449invalid_with_stmt:
1450- | ['async'] 'with' expression ['as' star_target] ',' ':' {
1451- RAISE_SYNTAX_ERROR("single 'with' item has a trailing comma") }
1450+ | ['async'] 'with' ','.( expression ['as' star_target])+ trailing= ',' ':' {
1451+ RAISE_SYNTAX_ERROR_KNOWN_LOCATION(trailing, "the last 'with' item has a trailing comma") }
14521452 | ['async'] 'with' ','.(expression ['as' star_target])+ NEWLINE { RAISE_SYNTAX_ERROR("expected ':'") }
14531453 | ['async'] 'with' '(' ','.(expressions ['as' star_target])+ ','? ')' NEWLINE { RAISE_SYNTAX_ERROR("expected ':'") }
14541454invalid_with_stmt_indent:
You can’t perform that action at this time.
0 commit comments