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 (probably others): python3.12+ f-string false positives

asottile opened this issue · comments

now that f-strings are tokenized there's quite a few false positives. I haven't done too much digging yet but this seems to be easiest one to reproduce:

f'hello:{hi}'
t.py:1:8: E231 missing whitespace after ':'