Skip to content

Commit

Permalink
fix ast indention
Browse files Browse the repository at this point in the history
  • Loading branch information
loechel committed Oct 7, 2023
1 parent fd15390 commit 1d6fcab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/contributing/ast/python3_12.ast
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ module Python version "3.12"
expr? returns,
string? type_comment,
type_param* type_params)

| ClassDef(identifier name,
expr* bases,
keyword* keywords,
stmt* body,
expr* decorator_list,
type_param* type_params)
type_param* type_params)
| Return(expr? value)

| Delete(expr* targets)
Expand Down Expand Up @@ -156,15 +157,15 @@ module Python version "3.12"
expr* defaults)

arg = (identifier arg, expr? annotation, string? type_comment)
attributes (int lineno, int col_offset, int? end_lineno, int? end_col_offset)
attributes (int lineno, int col_offset, int? end_lineno, int? end_col_offset)

-- keyword arguments supplied to call (NULL identifier for **kwargs)
keyword = (identifier? arg, expr value)
attributes (int lineno, int col_offset, int? end_lineno, int? end_col_offset)
attributes (int lineno, int col_offset, int? end_lineno, int? end_col_offset)

-- import name with optional 'as' alias.
alias = (identifier name, identifier? asname)
attributes (int lineno, int col_offset, int? end_lineno, int? end_col_offset)
attributes (int lineno, int col_offset, int? end_lineno, int? end_col_offset)

withitem = (expr context_expr, expr? optional_vars)

Expand Down

0 comments on commit 1d6fcab

Please sign in to comment.