<div dir="auto">Madeleine,<div dir="auto"><br></div><div dir="auto">That's an excellent find. The underlying bug is in pycodestyle, though. You can report the issue on <a href="http://github.com/PyCQA/pycodestyle">github.com/PyCQA/pycodestyle</a></div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto"><br><div data-smartmail="gmail_signature" dir="auto">Sent from my phone with my typo-happy thumbs. Please excuse my brevity</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Feb 13, 2018 15:07, "Madeleine Thompson" <<a href="mailto:madeleineth@gmail.com">madeleineth@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have what I think may be a bug in flake8. Consider this source file, test.py:<br>
<br>
open({<br>
    'a':<br>
        len([1, 2, 3]),<br>
    'b': [<br>
        'c'<br>
    ]<br>
})<br>
<br>
open({<br>
    'a':<br>
        False,<br>
    'b': [<br>
        'c'<br>
    ]<br>
})<br>
<br>
Notice that the two blocks only differ in the call to "len." If I run<br>
flake8 on it:<br>
<br>
$ flake8 test.py<br>
test.py:6:5: E122 continuation line missing indentation or outdented<br>
<br>
It passes without errors if I move the "]" on line 6 to under the<br>
open-quote in 'c'.<br>
<br>
I believe this file should pass flake8 without errors. But, if it<br>
doesn't, it should have two errors, not one.<br>
<br>
Version information:<br>
<br>
$ python -V<br>
Python 3.5.2<br>
$ flake8 --version<br>
3.5.0 (mccabe: 0.6.1, pycodestyle: 2.3.1, pyflakes: 1.6.0) CPython<br>
3.5.2 on Linux<br>
<br>
Also replicated on a fresh Docker container based on ubuntu:bionic<br>
with Python 3.6.4 (nothing installed but the base image, python3,<br>
python3-pip, and the pypi version of flake8).<br>
<br>
Thanks!<br>
______________________________<wbr>_________________<br>
code-quality mailing list<br>
<a href="mailto:code-quality@python.org">code-quality@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/code-quality" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/code-quality</a><br>
</blockquote></div></div>