Closed
Description
I saw this example in Black:
def this_is_so_dumb() -> (please := no): ...
def this_is_so_dumb(x) -> (please := no): ...
Right now, the formatter strips parentheses on the right-hand side, seemingly because optional_parentheses
doesn't take required parentheses into account, unlike maybe_parenthesize_expression
.