PyCQA / pycodestyle

Simple Python style checker in one Python file

Home Page:https://pycodestyle.pycqa.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

E231 false positive with pycodestyle version 2.11.0

tanagumo opened this issue · comments

An E231 error occurs since pycodestyle version 2.11.0.

Environment

$ python -V
Python 3.11.0

$ pycodestyle --version
2.10.0

$ cat test.py
with a,\
        b:
    pass

$ pycodestyle test.py
$ echo $?
0
$ pycodestyle --version
2.11.0

$ pycodestyle test.py
test.py:1:12: E231 missing whitespace after ','

$ echo $?
1

this error is correct -- there should be a space between the , and the backslash