Skip to content

Commit

Permalink
Use or instead of and
Browse files Browse the repository at this point in the history
  • Loading branch information
jpy-git committed Mar 16, 2022
1 parent 240a6f8 commit cd0695d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/black/linegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,10 +893,10 @@ def normalize_invisible_parens(
elif not (isinstance(child, Leaf) and is_multiline_string(child)):
wrap_in_parentheses(node, child, visible=False)

comma_check = child.type == token.COMMA if remove_with_parens else True
comma_check = child.type == token.COMMA if remove_with_parens else False

check_lpar = (
isinstance(child, Leaf) and child.value in parens_after and comma_check
isinstance(child, Leaf) and child.value in parens_after or comma_check
)


Expand Down

0 comments on commit cd0695d

Please sign in to comment.