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

expressions in f strings don't get formatted #2755

Closed
DetachHead opened this issue Jan 10, 2022 · 1 comment
Closed

expressions in f strings don't get formatted #2755

DetachHead opened this issue Jan 10, 2022 · 1 comment
Labels
T: bug Something isn't working

Comments

@DetachHead
Copy link

Describe the bug

before

print(   1) # gets formateted

a = f"{print(   1)}" # doesn't get formatted

after

print(1)  # gets formateted

a = f"{print(   1)}"  # doesn't get formatted

Environment

  • Black's version: 21.12b0
  • OS and Python version: windows 10, python 3.10

Additional context

@DetachHead DetachHead added the T: bug Something isn't working label Jan 10, 2022
@DetachHead
Copy link
Author

#567

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant