Skip to content

Commit c8f3c1d

Browse files
authored
[3.13] gh-122300: Preserve AST nodes for format specifiers with single elements (GH-122308) (#122364)
(cherry picked from commit db2d8b6)
1 parent a93f97c commit c8f3c1d

File tree

4 files changed

+138
-2982
lines changed

4 files changed

+138
-2982
lines changed

Doc/library/ast.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@ Literals
316316
args=[
317317
Name(id='a', ctx=Load())]),
318318
conversion=-1,
319-
format_spec=Constant(value='.3'))]))
319+
format_spec=JoinedStr(
320+
values=[
321+
Constant(value='.3')]))]))
320322

321323

322324
.. class:: List(elts, ctx)

0 commit comments

Comments
 (0)