mirror of
https://github.com/astral-sh/ruff
synced 2026-01-08 15:14:19 -05:00
Alternate quotes for strings inside f-strings in preview (#13860)
This commit is contained in:
@@ -524,6 +524,10 @@ impl StringLikePart<'_> {
|
||||
self.end() - kind.closer_len(),
|
||||
)
|
||||
}
|
||||
|
||||
pub const fn is_fstring(self) -> bool {
|
||||
matches!(self, Self::FString(_))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> From<&'a ast::StringLiteral> for StringLikePart<'a> {
|
||||
|
||||
Reference in New Issue
Block a user