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

2.11: raise E201 and E202 with 3.12.0rc1

Akasurde opened this issue · comments

pycodestyle 2.11 raises E201 and E202 on fstring with spaces in Python 3.12.0rc1, whereas 3.11.4 does not have any warnings -

# pyenv local 3.11.4
# pycodestyle --version
2.11.0
# pycodestyle hello.py
# pyenv local 3.12.0rc1
# pycodestyle --version
2.11.0
# pycodestyle hello.py
hello.py:2:10: E201 whitespace after '{'
hello.py:2:12: E202 whitespace before '}'
# cat hello.py
a = "Hello"
print(f'{ a }')

this is correct. 3.11 cannot detect this but 3.12 can