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
I believe this is because a trailing comma in this context is only legal in 3.6+. If you use an f-string, we know the file is 3.6+, so we can use other 3.6+ syntax.
However, Python 3.5 is long dead. We can probably get rid of this behavior now.
Describe the bug
Black's treatment of trailing commas depends on previous statements.
To Reproduce
If
file0.py
isrunning
produces
If
file1.py
isrunning
produces
Expected behavior
The previous statement
f""
does not affect the trailing comma after"Lucy."
.Environment
The same behaviour is exhibited by
https://black.vercel.app/?version=main
.The text was updated successfully, but these errors were encountered: