summaryrefslogtreecommitdiffstats
path: root/Parser/Python.asdl
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2023-05-22 04:25:09 (GMT)
committerGitHub <noreply@github.com>2023-05-22 04:25:09 (GMT)
commita5f244d627a6815cf2d8ccec836b9b52eb3e8de2 (patch)
tree55b68f8a6f9366132742fb45bd93199065f9e720 /Parser/Python.asdl
parentef5d00a59207a63c6d5ae0d5d44054847d1bf3b5 (diff)
downloadcpython-a5f244d627a6815cf2d8ccec836b9b52eb3e8de2.zip
cpython-a5f244d627a6815cf2d8ccec836b9b52eb3e8de2.tar.gz
cpython-a5f244d627a6815cf2d8ccec836b9b52eb3e8de2.tar.bz2
gh-104656: Rename typeparams AST node to type_params (#104657)
Diffstat (limited to 'Parser/Python.asdl')
-rw-r--r--Parser/Python.asdl16
1 files changed, 8 insertions, 8 deletions
diff --git a/Parser/Python.asdl b/Parser/Python.asdl
index cfc41ef..dc2eb802 100644
--- a/Parser/Python.asdl
+++ b/Parser/Python.asdl
@@ -8,15 +8,15 @@ module Python
| Expression(expr body)
| FunctionType(expr* argtypes, expr returns)
- stmt = FunctionDef(identifier name, typeparam* typeparams, arguments args,
+ stmt = FunctionDef(identifier name, type_param* type_params, arguments args,
stmt* body, expr* decorator_list, expr? returns,
string? type_comment)
- | AsyncFunctionDef(identifier name, typeparam* typeparams, arguments args,
+ | AsyncFunctionDef(identifier name, type_param* type_params, arguments args,
stmt* body, expr* decorator_list, expr? returns,
string? type_comment)
| ClassDef(identifier name,
- typeparam* typeparams,
+ type_param* type_params,
expr* bases,
keyword* keywords,
stmt* body,
@@ -25,7 +25,7 @@ module Python
| Delete(expr* targets)
| Assign(expr* targets, expr value, string? type_comment)
- | TypeAlias(expr name, typeparam* typeparams, expr value)
+ | TypeAlias(expr name, type_param* type_params, expr value)
| AugAssign(expr target, operator op, expr value)
-- 'simple' indicates that we annotate simple name without parens
| AnnAssign(expr target, expr annotation, expr? value, int simple)
@@ -145,8 +145,8 @@ module Python
type_ignore = TypeIgnore(int lineno, string tag)
- typeparam = TypeVar(identifier name, expr? bound)
- | ParamSpec(identifier name)
- | TypeVarTuple(identifier name)
- attributes (int lineno, int col_offset, int? end_lineno, int? end_col_offset)
+ type_param = TypeVar(identifier name, expr? bound)
+ | ParamSpec(identifier name)
+ | TypeVarTuple(identifier name)
+ attributes (int lineno, int col_offset, int? end_lineno, int? end_col_offset)
}