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 <batuhan@python.org>
1 parent e35430b commit bea3f42

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed
Lines changed: 2 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 5 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy