move comments from expressions in f-strings out (#6481)

This commit is contained in:
David Szotten
2023-08-11 08:22:30 +01:00
committed by GitHub
parent 2cedb401bd
commit f091b46497
3 changed files with 28 additions and 0 deletions

View File

@@ -80,6 +80,7 @@ pub(super) fn place_comment<'a>(
CommentPlacement::Default(comment)
}
}
AnyNodeRef::ExprFString(fstring) => CommentPlacement::dangling(fstring, comment),
AnyNodeRef::ExprList(_)
| AnyNodeRef::ExprSet(_)
| AnyNodeRef::ExprGeneratorExp(_)