wemake-services / flake8-broken-line

🚨 Flake8 plugin to forbid backslashes (\) for line breaks

Home Page:https://pypi.org/project/flake8-broken-line/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backslashes in rf strings not honored as in r strings.

wxtim opened this issue · comments

Example

This works as expected:

an_r_string = r'''
    Hello \
    World
'''

But this raises an error:

planet = 'Earth'
an_r_string = fr'''
    Hello \
    {planet}
'''