mirror of https://github.com/astral-sh/ruff
revert now-unnecessary comprehension check
This commit is contained in:
parent
07eef98b15
commit
e6917b0897
|
|
@ -89,7 +89,7 @@ impl NeedsParentheses for ExprIf {
|
|||
parent: AnyNodeRef,
|
||||
_context: &PyFormatContext,
|
||||
) -> OptionalParentheses {
|
||||
if parent.is_expr_await() || parent.is_comprehension() {
|
||||
if parent.is_expr_await() {
|
||||
OptionalParentheses::Always
|
||||
} else {
|
||||
OptionalParentheses::Multiline
|
||||
|
|
|
|||
Loading…
Reference in New Issue