mirror of
https://github.com/astral-sh/ruff
synced 2026-01-10 08:04:26 -05:00
[syntax-errors] Raise unsupported syntax error for template strings prior to Python 3.14 (#18664)
Closes #18662 One question is whether we would like the range to exclude the quotes?
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# parse_options: {"target-version": "3.13"}
|
||||
t"{hey}"
|
||||
t'{there}'
|
||||
t"""what's
|
||||
happening?"""
|
||||
"implicitly"t"concatenated"
|
||||
@@ -0,0 +1,6 @@
|
||||
# parse_options: {"target-version": "3.14"}
|
||||
t"{hey}"
|
||||
t'{there}'
|
||||
t"""what's
|
||||
happening?"""
|
||||
"implicitly"t"concatenated"
|
||||
Reference in New Issue
Block a user