Skip to content

Commit

Permalink
bpo-46289: Make conversion of FormattedValue not optional on ASDL (GH…
Browse files Browse the repository at this point in the history
…-30467)

Automerge-Triggered-By: GH:isidentical
(cherry picked from commit d382f7e)

Co-authored-by: Batuhan Taskaya <[email protected]>
  • Loading branch information
miss-islington and isidentical authored Jan 7, 2022
1 parent e35430b commit bea3f42
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ASDL declaration of ``FormattedValue`` has changed to reflect ``conversion``
field is not optional.
2 changes: 1 addition & 1 deletion Parser/Python.asdl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ module Python
-- x < 4 < 3 and (x < 4) < 3
| Compare(expr left, cmpop* ops, expr* comparators)
| Call(expr func, expr* args, keyword* keywords)
| FormattedValue(expr value, int? conversion, expr? format_spec)
| FormattedValue(expr value, int conversion, expr? format_spec)
| JoinedStr(expr* values)
| Constant(constant value, string? kind)

Expand Down
13 changes: 5 additions & 8 deletions Python/Python-ast.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bea3f42

Please sign in to comment.