diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2023-05-26 12:54:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-26 12:54:37 (GMT) |
commit | ba73473f4c18ba4cf7ab18d84d94a47d2d37a0c5 (patch) | |
tree | 64dd261a14ec8991182807c5a01f8042c5fb6f1f /Parser/Python.asdl | |
parent | 6e1eccdcce5ea3bf1ef9d326d20ef9df21262c6b (diff) | |
download | cpython-ba73473f4c18ba4cf7ab18d84d94a47d2d37a0c5.zip cpython-ba73473f4c18ba4cf7ab18d84d94a47d2d37a0c5.tar.gz cpython-ba73473f4c18ba4cf7ab18d84d94a47d2d37a0c5.tar.bz2 |
gh-104799: Move location of type_params AST fields (#104828)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Parser/Python.asdl')
-rw-r--r-- | Parser/Python.asdl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Parser/Python.asdl b/Parser/Python.asdl index dc2eb802..93632a0 100644 --- a/Parser/Python.asdl +++ b/Parser/Python.asdl @@ -8,19 +8,19 @@ module Python | Expression(expr body) | FunctionType(expr* argtypes, expr returns) - stmt = FunctionDef(identifier name, type_param* type_params, arguments args, + stmt = FunctionDef(identifier name, arguments args, stmt* body, expr* decorator_list, expr? returns, - string? type_comment) - | AsyncFunctionDef(identifier name, type_param* type_params, arguments args, + string? type_comment, type_param* type_params) + | AsyncFunctionDef(identifier name, arguments args, stmt* body, expr* decorator_list, expr? returns, - string? type_comment) + string? type_comment, type_param* type_params) | ClassDef(identifier name, - type_param* type_params, expr* bases, keyword* keywords, stmt* body, - expr* decorator_list) + expr* decorator_list, + type_param* type_params) | Return(expr? value) | Delete(expr* targets) |