mirror of https://github.com/astral-sh/ruff
docs
This commit is contained in:
parent
e6917b0897
commit
e18ead10e1
|
|
@ -70,6 +70,10 @@ pub(crate) enum Parenthesize {
|
||||||
/// when outer parentheses are present.
|
/// when outer parentheses are present.
|
||||||
IfBreaksParenthesizedNested,
|
IfBreaksParenthesizedNested,
|
||||||
|
|
||||||
|
/// Parenthesize the expression if it doesn't fit on a line or if the expression is
|
||||||
|
/// parenthesized in the source code. This is similar to `Self::Optional` except that this
|
||||||
|
/// variant will also include parentheses in nested calls, like
|
||||||
|
/// `Self::IfBreaksParenthesizedNested`.
|
||||||
IfBreaksComprehension,
|
IfBreaksComprehension,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue