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
BionicBlade0
changed the title
Doesn
Does not understand double quotation in f-string in Python 3.12
Feb 9, 2024
BionicBlade0
changed the title
Does not understand double quotation in f-string in Python 3.12
Does not understand double quotation ("") in f-string in Python 3.12
Feb 9, 2024
BionicBlade0
changed the title
Does not understand double quotation ("") in f-string in Python 3.12
Does not understand how to format double quotation ("") in f-string in Python 3.12
Feb 9, 2024
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.
Hi @karthiknadig, I just found this and assuming I understand it correctly, I can provide an example in their place:
Basically in previous Python versions having double quotes in an f-string like this f"BattleBanana Leaderboard on {details["server_name_clean"]}" was not supported and acted like black does right now. It needed single quotes like this: f"BattleBanana Leaderboard on {details['server_name_clean']}"
However with more research, this seems more on Black than the plugin itself, they didn't implement support for PEP 701 yet: psf/black#3746
Currently using VSCode 1.86.1 with Black Formatter v2024.0.0.
The Formatter does not understand how to format double quotation ("") in f-string (PEP 701) in Python 3.12.
The text was updated successfully, but these errors were encountered: