-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
'Wrong hanging indent before block' False positive #2944
Comments
Hi. Does it say that you need 2 extra spaces or 4? Can you paste the exact output you are receiving? |
Sorry, here is the exact output. And indeed it says 4.
This is after ignoring module docstring warnings. |
I reproduced the output (pylint 2.4.0-dev0):
So at least we can remove "also does not show error code for it" from the issue title ) @LeptoSpira you could probably do what it wants, add 4 spaces: for name, index in zip(
[
"foo:",
"bar:",
],
range(5),
):
pass Checked both variants with pycodestyle - no warnings. |
yapf formats it to without the 4 extra spaces, so I guess we should move this issue to the yapf repository? |
Unfortunately rules from pep8 in such case are not specific, and we don't have any solid arguments beside that |
If that is so, I don't think the error should occur |
Same thing happens with what class A:
def __init__(
self,
many,
long,
arguments,
passed,
here
)
...
|
Thanks for the reproducible case @lukaszdudek-silvair |
I stumbled over this issue after using |
Is there any progress on this? |
|
Steps to reproduce
Current behavior
warnings
Expected behavior
No warnings
pylint --version output
The text was updated successfully, but these errors were encountered: