Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.11: raise E201 and E202 with 3.12.0rc1 #1190

Closed
Akasurde opened this issue Aug 9, 2023 · 1 comment
Closed

2.11: raise E201 and E202 with 3.12.0rc1 #1190

Akasurde opened this issue Aug 9, 2023 · 1 comment

Comments

@Akasurde
Copy link

Akasurde commented Aug 9, 2023

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 }')
@asottile
Copy link
Member

asottile commented Aug 9, 2023

this is correct. 3.11 cannot detect this but 3.12 can

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants