Skip to content

Commit

Permalink
Check if string is completely inside f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvmanila committed Mar 14, 2024
1 parent f5366a1 commit 677178a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ pub(crate) fn check_string_quotes(checker: &mut Checker, string_like: StringLike
.indexer()
.fstring_ranges()
.outermost(string_like.start())
.is_some_and(|outer_range| outer_range != string_like.range())
.is_some_and(|outer| outer.start() < string_like.start() && string_like.end() < outer.end())
{
return;
}
Expand Down

0 comments on commit 677178a

Please sign in to comment.