Skip to content

Commit

Permalink
Remove parentheses from and not expression
Browse files Browse the repository at this point in the history
Co-authored-by: Felix Hildén <felix.hilden@gmail.com>
  • Loading branch information
Shivansh-007 and felix-hilden committed Jan 28, 2022
1 parent a6551df commit 385d67f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/black/linegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def visit_power(self, node: Node) -> Iterator[Line]:
# Ensure that we are in an attribute trailer
and next_leaf.children[0].type == token.DOT
# It shouldn't wrap hexadecimal, binary and octal literals
and (not value.startswith(("0x", "0b", "0o")))
and not value.startswith(("0x", "0b", "0o"))
# It shouldn't wrap complex literals
and "j" not in value
):
Expand Down

0 comments on commit 385d67f

Please sign in to comment.