@@ -79,7 +79,7 @@ _PyPegen_parse(Parser *p)
79
79
# ~
80
80
# Commit to the current alternative, even if it fails to parse.
81
81
# &&e
82
- # Eager parse e. The parser will not backtrack and will immediately
82
+ # Eager parse e. The parser will not backtrack and will immediately
83
83
# fail with SyntaxError if e cannot be parsed.
84
84
#
85
85
@@ -659,7 +659,7 @@ type_alias[stmt_ty]:
659
659
# Type parameter declaration
660
660
# --------------------------
661
661
662
- type_params[asdl_type_param_seq*]:
662
+ type_params[asdl_type_param_seq*]:
663
663
| invalid_type_params
664
664
| '[' t=type_param_seq ']' {
665
665
CHECK_VERSION(asdl_type_param_seq *, 12, "Type parameter lists are", t) }
@@ -1339,13 +1339,13 @@ invalid_group:
1339
1339
invalid_import:
1340
1340
| a='import' ','.dotted_name+ 'from' dotted_name {
1341
1341
RAISE_SYNTAX_ERROR_STARTING_FROM(a, "Did you mean to use 'from ... import ...' instead?") }
1342
- | 'import' token=NEWLINE {
1342
+ | 'import' token=NEWLINE {
1343
1343
RAISE_SYNTAX_ERROR_STARTING_FROM(token, "Expected one or more names after 'import'") }
1344
1344
1345
1345
invalid_import_from_targets:
1346
1346
| import_from_as_names ',' NEWLINE {
1347
1347
RAISE_SYNTAX_ERROR("trailing comma not allowed without surrounding parentheses") }
1348
- | token=NEWLINE {
1348
+ | token=NEWLINE {
1349
1349
RAISE_SYNTAX_ERROR_STARTING_FROM(token, "Expected one or more names after 'import'") }
1350
1350
1351
1351
invalid_with_stmt:
@@ -1484,5 +1484,5 @@ invalid_factor:
1484
1484
invalid_type_params:
1485
1485
| '[' token=']' {
1486
1486
RAISE_SYNTAX_ERROR_STARTING_FROM(
1487
- token,
1487
+ token,
1488
1488
"Type parameter list cannot be empty")}
0 commit comments