Normalize implicit concatenated f-string quotes per part (#13539)
This commit is contained in:
@@ -33,14 +33,15 @@ node_lines = (
|
||||
nodes = []
|
||||
for node_line in node_lines:
|
||||
node = node_line.split("(")[1].split(")")[0].split("::")[-1].split("<")[0]
|
||||
# `FString` and `StringLiteral` has a custom implementation while the formatting for
|
||||
# `FStringLiteralElement` and `FStringExpressionElement` are handled by the `FString`
|
||||
# `FString` has a custom implementation while the formatting for
|
||||
# `FStringLiteralElement`, `FStringFormatSpec` and `FStringExpressionElement` are handled by the `FString`
|
||||
# implementation.
|
||||
if node in (
|
||||
"FString",
|
||||
"StringLiteral",
|
||||
"FStringLiteralElement",
|
||||
"FStringExpressionElement",
|
||||
"FStringFormatSpec",
|
||||
"Identifier",
|
||||
):
|
||||
continue
|
||||
nodes.append(node)
|
||||
|
||||
Reference in New Issue
Block a user