From 0bb718c0ecbecc0143851d1ff19722f8427b9957 Mon Sep 17 00:00:00 2001 From: James Addison Date: Wed, 3 Feb 2021 10:04:33 +0000 Subject: [PATCH] Use a 'pass' statement since 'maybe_make_parens_invisible_in_atom' currently always returns False for non-atom nodes, making the 'wrap_in_parentheses' call unreachable --- src/black/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)