Remove layout values from AnyStringPart (#13681)

This commit is contained in:
Micha Reiser
2024-10-09 08:25:40 +02:00
committed by GitHub
parent 93eff7f174
commit b9827a4122
5 changed files with 45 additions and 62 deletions

View File

@@ -22,7 +22,7 @@ impl<'a, 'src> StringNormalizer<'a, 'src> {
pub(crate) fn from_context(context: &'a PyFormatContext<'src>) -> Self {
Self {
quoting: Quoting::default(),
preferred_quote_style: QuoteStyle::default(),
preferred_quote_style: context.options().quote_style(),
context,
}
}