We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
File can not be formatted
from datetime import datetime created = 1699960500 dt = datetime.fromtimestamp(created) a = "hello" n = "world" print(f"{a}. {n} ({dt.strftime("%Y-%m-%d-%H:%M:%S")})")
And run it with these arguments:
$ black file.py
The resulting error is:
error: cannot format file.py: Cannot parse: 9:35: print(f"{a}. {n} ({dt.strftime("%Y-%m-%d-%H:%M:%S")})")
Expected behavior
Passes black or makes correction. Perhaps this is resolved elsewhere. e.g. #1132
Environment
The text was updated successfully, but these errors were encountered:
Duplicate of #3746. Note this syntax is new in Python 3.12.
Sorry, something went wrong.
No branches or pull requests
File can not be formatted
And run it with these arguments:
The resulting error is:
error: cannot format file.py:
Cannot parse: 9:35: print(f"{a}. {n} ({dt.strftime("%Y-%m-%d-%H:%M:%S")})")
Expected behavior
Passes black or makes correction.
Perhaps this is resolved elsewhere. e.g. #1132
Environment
The text was updated successfully, but these errors were encountered: