mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:56 +00:00
Delete redundant branch in NeedsParentheses
(#8377)
This commit is contained in:
parent
8977b6ae11
commit
230c93459f
1 changed files with 0 additions and 2 deletions
|
@ -150,8 +150,6 @@ impl NeedsParentheses for ExprAttribute {
|
|||
OptionalParentheses::Multiline
|
||||
} else if context.comments().has_dangling(self) {
|
||||
OptionalParentheses::Always
|
||||
} else if self.value.is_name_expr() {
|
||||
OptionalParentheses::BestFit
|
||||
} else if is_expression_parenthesized(
|
||||
self.value.as_ref().into(),
|
||||
context.comments().ranges(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue