mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 12:55:05 +00:00
FString formatting: remove fstring handling in normalize_string
(#10119)
This commit is contained in:
parent
51ce88bb23
commit
1711bca4a0
2 changed files with 14 additions and 3 deletions
|
@ -62,6 +62,7 @@ impl Format<PyFormatContext<'_>> for FormatFStringLiteralElement<'_> {
|
|||
self.context.quotes(),
|
||||
self.context.prefix(),
|
||||
is_hex_codes_in_unicode_sequences_enabled(f.context()),
|
||||
true,
|
||||
);
|
||||
match &normalized {
|
||||
Cow::Borrowed(_) => source_text_slice(self.element.range()).fmt(f),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue