PyCQA/pycodestyle

E231 (probably others): python3.12+ f-string false positives

asottile opened this issue · 1 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 ':'