Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive (regression) bad-continuation #3326

Closed
sam-s opened this issue Dec 31, 2019 · 1 comment
Closed

False positive (regression) bad-continuation #3326

sam-s opened this issue Dec 31, 2019 · 1 comment

Comments

@sam-s
Copy link

sam-s commented Dec 31, 2019

Steps to reproduce

file:

if (a and
    b) or c:
    print(d)

Current behavior

convention (C0330, bad-continuation, ) Wrong continued indentation before block (add 4 spaces).
     b) or c:
     ^   |

Expected behavior

no diagnostics (as it was before the update this morning)

pylint --version output

pylint 2.4.4
astroid 2.3.3
Python 3.7.6 (default, Dec 30 2019, 19:38:28) 
[Clang 11.0.0 (clang-1100.0.33.16)]
@PCManticore
Copy link
Contributor

Thanks for the report. I'm not entirely sure we modified bad-continuation in recent versions, but that code doesn't look proper according to PEP-8 to me. Regardless, this issue is probably a form of #289 which is a long standing issue with our PEP-8 checks regarding proper indentations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants