You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given this example, explicitly allowed by PEP8 (lit. Backslashes may still be appropriate at times. For example, long, multiple with-statements cannot use implicit continuation, so backslashes are acceptable):
This plugin gives many non-PEP8-compliant false positives:
test_continuation.py:2:1: N400: Found backslash that is used for line breaking
async with asdf() as a, \
bsdf():
^
test_continuation.py:6:1: N400: Found backslash that is used for line breaking
with asdf() as a, \
bsdf():
^
test_continuation.py:11:1: N400: Found backslash that is used for line breaking
with \
asdf() as a, \
bsdf():
^
test_continuation.py:12:3: N400: Found backslash that is used for line breaking
with \
asdf() as a, \
bsdf():
^
The text was updated successfully, but these errors were encountered:
ergoithz
changed the title
with statement exemption is not honored
PEP8 backslash exception for with statements is not honored
Aug 28, 2021
Given this example, explicitly allowed by PEP8 (lit.
Backslashes may still be appropriate at times. For example, long, multiple with-statements cannot use implicit continuation, so backslashes are acceptable
):This plugin gives many non-PEP8-compliant false positives:
The text was updated successfully, but these errors were encountered: