diff --git a/src/black/__init__.py b/src/black/__init__.py index bc0d3d1b481..7fb49fa01dc 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -5382,8 +5382,7 @@ def normalize_invisible_parens(node: Node, parens_after: Set[str]) -> None: node.append_child(Leaf(token.RPAR, "")) break elif node.type in [syms.assert_stmt, syms.return_stmt]: - if maybe_make_parens_invisible_in_atom(child, parent=node): - wrap_in_parentheses(node, child, visible=False) + pass elif not (isinstance(child, Leaf) and is_multiline_string(child)): wrap_in_parentheses(node, child, visible=False)