diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2023-05-22 04:25:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-22 04:25:09 (GMT) |
commit | a5f244d627a6815cf2d8ccec836b9b52eb3e8de2 (patch) | |
tree | 55b68f8a6f9366132742fb45bd93199065f9e720 /Grammar/python.gram | |
parent | ef5d00a59207a63c6d5ae0d5d44054847d1bf3b5 (diff) | |
download | cpython-a5f244d627a6815cf2d8ccec836b9b52eb3e8de2.zip cpython-a5f244d627a6815cf2d8ccec836b9b52eb3e8de2.tar.gz cpython-a5f244d627a6815cf2d8ccec836b9b52eb3e8de2.tar.bz2 |
gh-104656: Rename typeparams AST node to type_params (#104657)
Diffstat (limited to 'Grammar/python.gram')
-rw-r--r-- | Grammar/python.gram | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Grammar/python.gram b/Grammar/python.gram index c79207b..e6a9834 100644 --- a/Grammar/python.gram +++ b/Grammar/python.gram @@ -640,12 +640,12 @@ type_alias[stmt_ty]: # Type parameter declaration # -------------------------- -type_params[asdl_typeparam_seq*]: '[' t=type_param_seq ']' { - CHECK_VERSION(asdl_typeparam_seq *, 12, "Type parameter lists are", t) } +type_params[asdl_type_param_seq*]: '[' t=type_param_seq ']' { + CHECK_VERSION(asdl_type_param_seq *, 12, "Type parameter lists are", t) } -type_param_seq[asdl_typeparam_seq*]: a[asdl_typeparam_seq*]=','.type_param+ [','] { a } +type_param_seq[asdl_type_param_seq*]: a[asdl_type_param_seq*]=','.type_param+ [','] { a } -type_param[typeparam_ty] (memo): +type_param[type_param_ty] (memo): | a=NAME b=[type_param_bound] { _PyAST_TypeVar(a->v.Name.id, b, EXTRA) } | '*' a=NAME colon=":" e=expression { RAISE_SYNTAX_ERROR_STARTING_FROM(colon, e->kind == Tuple_kind |