@@ -8,15 +8,15 @@ module Python
88 | Expression(expr body)
99 | FunctionType(expr* argtypes, expr returns)
1010
11- stmt = FunctionDef(identifier name, typeparam* typeparams , arguments args,
11+ stmt = FunctionDef(identifier name, type_param* type_params , arguments args,
1212 stmt* body, expr* decorator_list, expr? returns,
1313 string? type_comment)
14- | AsyncFunctionDef(identifier name, typeparam* typeparams , arguments args,
14+ | AsyncFunctionDef(identifier name, type_param* type_params , arguments args,
1515 stmt* body, expr* decorator_list, expr? returns,
1616 string? type_comment)
1717
1818 | ClassDef(identifier name,
19- typeparam* typeparams ,
19+ type_param* type_params ,
2020 expr* bases,
2121 keyword* keywords,
2222 stmt* body,
@@ -25,7 +25,7 @@ module Python
2525
2626 | Delete(expr* targets)
2727 | Assign(expr* targets, expr value, string? type_comment)
28- | TypeAlias(expr name, typeparam* typeparams , expr value)
28+ | TypeAlias(expr name, type_param* type_params , expr value)
2929 | AugAssign(expr target, operator op, expr value)
3030 -- 'simple' indicates that we annotate simple name without parens
3131 | AnnAssign(expr target, expr annotation, expr? value, int simple)
@@ -145,8 +145,8 @@ module Python
145145
146146 type_ignore = TypeIgnore(int lineno, string tag)
147147
148- typeparam = TypeVar(identifier name, expr? bound)
149- | ParamSpec(identifier name)
150- | TypeVarTuple(identifier name)
151- attributes (int lineno, int col_offset, int? end_lineno, int? end_col_offset)
148+ type_param = TypeVar(identifier name, expr? bound)
149+ | ParamSpec(identifier name)
150+ | TypeVarTuple(identifier name)
151+ attributes (int lineno, int col_offset, int? end_lineno, int? end_col_offset)
152152}
0 commit comments