Implement template strings (#17851)
This PR implements template strings (t-strings) in the parser and formatter for Ruff. Minimal changes necessary to compile were made in other parts of the code (e.g. ty, the linter, etc.). These will be covered properly in follow-up PRs.
This commit is contained in:
@@ -38,9 +38,9 @@ for node_line in node_lines:
|
||||
# `FStringLiteralElement`, `FStringFormatSpec` and `FStringExpressionElement` are
|
||||
# handled by the `FString` implementation.
|
||||
if node in (
|
||||
"FStringLiteralElement",
|
||||
"FStringExpressionElement",
|
||||
"FStringFormatSpec",
|
||||
"InterpolatedStringLiteralElement",
|
||||
"InterpolatedElement",
|
||||
"InterpolatedStringFormatSpec",
|
||||
"Identifier",
|
||||
):
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user