Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bea3f42

Browse files
bpo-46289: Make conversion of FormattedValue not optional on ASDL (GH-30467)
Automerge-Triggered-By: GH:isidentical (cherry picked from commit d382f7e) Co-authored-by: Batuhan Taskaya <[email protected]>
1 parent e35430b commit bea3f42

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ASDL declaration of ``FormattedValue`` has changed to reflect ``conversion``
2+
field is not optional.

Parser/Python.asdl

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ module Python
7474
-- x < 4 < 3 and (x < 4) < 3
7575
| Compare(expr left, cmpop* ops, expr* comparators)
7676
| Call(expr func, expr* args, keyword* keywords)
77-
| FormattedValue(expr value, int? conversion, expr? format_spec)
77+
| FormattedValue(expr value, int conversion, expr? format_spec)
7878
| JoinedStr(expr* values)
7979
| Constant(constant value, string? kind)
8080

Python/Python-ast.c

+5-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)