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

Have an opinion about spaces around f-string arguments #3090

Closed
dimaqq opened this issue May 28, 2022 · 1 comment
Closed

Have an opinion about spaces around f-string arguments #3090

dimaqq opened this issue May 28, 2022 · 1 comment
Labels
T: enhancement New feature or request

Comments

@dimaqq
Copy link

dimaqq commented May 28, 2022

Today black allows both of these:

a = f"{None}"
b = f"{ None }"
> black test.py
All done! ✨ 🍰 ✨
1 file left unchanged.

Perhaps an opinionated tool should have an opinion here.

@dimaqq dimaqq added the T: enhancement New feature or request label May 28, 2022
@JelleZijlstra
Copy link
Collaborator

Unfortunately we don't format the insides of f-strings yet. Contributions welcome!

Duplicate of #567.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants