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 23, 2024
1 parent b4bed1d commit 743c772
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,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 743c772

Please sign in to comment.