how to reformat long f-string correctly?

Answered

I have a line of code like this: 

aux_code = f'\n//!!! required values count= {len(steps_map[step["type"]]["values"])}; step\'s values count= {len(step["values"])}'

Every time I reformat code, it becomes like this (it is wrong):

aux_code = f'\n//!!! required values count= {len(
steps_map[step["type"]]["values"])}; step\'s values count= {len(step["values"])}'

how can I fix this format issue ? 

1 comment
Comment actions Permalink

Hi,

It should be fixed in 2019.1.3 https://youtrack.jetbrains.com/issue/PY-27615, please follow the issue for updates.

0

Please sign in to leave a comment.