mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 12:55:05 +00:00
Fix parentheses around return type annotations (#13381)
This commit is contained in:
parent
7c2011599f
commit
531ebf6dff
15 changed files with 1487 additions and 296 deletions
|
@ -112,7 +112,7 @@ impl FormatNodeRule<WithItem> for FormatWithItem {
|
|||
maybe_parenthesize_expression(
|
||||
context_expr,
|
||||
item,
|
||||
Parenthesize::IfBreaksOrIfRequired,
|
||||
Parenthesize::IfBreaksParenthesizedNested,
|
||||
)
|
||||
.fmt(f)?;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue