You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Finally, and this is the best part: what if you want whitespace around the equals sign? [..] no problem; whitespace is preserved from the original text inside the curly braces [..] we also explicitly permit, and preserve, whitespace.
Similar discussions (sometimes prematurely marked as resolved):
I have f-strings like so:
f"{ parts.scheme }://{ public_key }@{ parts.hostname }"
On Python 3.11 and below pycodestyle (via flake8) is happy with them. On Python 3.12 I get E201 and E202 (
whitespace after '{'
,whitespace before '}'
)This error is surprising to me, and "fixing" it makes the code much harder to read. Thoughts:
pycodestyle
developers that whitespace-rules should be applied equally inside and outside f-strings?Similar discussions (sometimes prematurely marked as resolved):
====
The text was updated successfully, but these errors were encountered: