Skip to content

Commit

Permalink
Cleanup: remove slightly arbitrary 'pass' handling for assert and ret…
Browse files Browse the repository at this point in the history
…urn statements
  • Loading branch information
jayaddison committed Feb 3, 2021
1 parent 82ab09d commit f154042
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/black/__init__.py
Expand Up @@ -5381,8 +5381,6 @@ def normalize_invisible_parens(node: Node, parens_after: Set[str]) -> None:
node.insert_child(index, Leaf(token.LPAR, ""))
node.append_child(Leaf(token.RPAR, ""))
break
elif node.type in [syms.assert_stmt, syms.return_stmt]:
pass

elif not (isinstance(child, Leaf) and is_multiline_string(child)):
wrap_in_parentheses(node, child, visible=False)
Expand Down

0 comments on commit f154042

Please sign in to comment.