PyCQA / pycodestyle

Simple Python style checker in one Python file
https://pycodestyle.pycqa.org
Other
5.01k stars 755 forks source link

E231 false positive with pycodestyle version 2.11.0 #1203

Closed tanagumo closed 10 months ago

tanagumo commented 10 months ago

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
asottile commented 10 months ago

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