Skip to content

0.8.1 regression - formatter removes strings causing a syntax error on multiline fstring with implicitly concatenated strings and an if expression inside it #14778

@DetachHead

Description

@DetachHead

before:

f"""{'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' 'a' if True else ""}\
a"""

after:

f"""{ if True else ""}\
a"""

playground

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingformatterRelated to the formatterpreviewRelated to preview mode features

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions