Hendrik Wiese
Hendrik Wiese

Reputation: 2219

PyCharm 2018.3.3 reformat code leads to broken literal string

It appears that the default settings for automatic reformatting of Python code in PyCharm 2018.3.3 (which I'm using) breaks f-strings, as can be seen in this picture:

Broken f-strings after reformat code

Is there a setting to fix this? Or is it a legit bug?

Upvotes: 4

Views: 90

Answers (1)

Pavel Karateev
Pavel Karateev

Reputation: 8495

It's a PyCharm bug indeed, I believe PY-27615 covers this case.

Upvotes: 1

Related Questions