-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
T: bugSomething isn't workingSomething isn't working
Description
Describe the bug
black doesn't support Python 3.14 syntax.
To Reproduce
For example, take this code:
name = "world"
print(t"hello {name}")And run it with these arguments:
$ black file.py --target-version py314The resulting error is:
error: cannot format t_string.py: Cannot parse for target version Python 3.14: 3:7: print(t"hello {name}")
Expected behavior
I expect black to be able to parse this.
Environment
- Black's version: 25.9.0
- OS and Python version: macOS 15.6.1, Python (CPython) 3.13.5
Additional context
None.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
T: bugSomething isn't workingSomething isn't working