Skip to content

Support f-string formatting of long str-arrays - #3911

Merged
jl-wynen merged 3 commits into
mainfrom
fix-fstring-long-string-arrays
Jul 7, 2026
Merged

jl-wynen merged 3 commits into
mainfrom
fix-fstring-long-string-arrays

Conversation

@jl-wynen

Copy link
Copy Markdown
Member

Fixes #3910

@jl-wynen
jl-wynen force-pushed the fix-fstring-long-string-arrays branch from 98938a3 to 7567928 Compare June 22, 2026 08:25
elements.extend(_format_all_in(data[right]))
if right != range(0, 0):
elements.extend(_format_all_in(data, right))
return f'[{", ".join(elements)}]'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a small test that just tries to make a f-string and just make sure it doesn't raise?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@jl-wynen
jl-wynen force-pushed the fix-fstring-long-string-arrays branch from de0e4d1 to e5990ff Compare July 2, 2026 14:10
@jl-wynen
jl-wynen merged commit cdea509 into main Jul 7, 2026
4 checks passed
@jl-wynen
jl-wynen deleted the fix-fstring-long-string-arrays branch July 7, 2026 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] F-string formatting string array fails.

2 participants