Skip to content

Commit

Permalink
Format outself.
Browse files Browse the repository at this point in the history
  • Loading branch information
yilei committed Oct 26, 2022
1 parent 2e37145 commit 5f4e810
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/black/trans.py
Original file line number Diff line number Diff line change
Expand Up @@ -1061,11 +1061,7 @@ def _prefer_paren_wrap_match(LL: List[Leaf]) -> Optional[int]:
# If the string is surrounded by commas (or is the first/last child)...
prev_sibling = LL[0].prev_sibling
next_sibling = LL[0].next_sibling
if (
not prev_sibling
and not next_sibling
and parent_type(LL[0]) == syms.atom
):
if not prev_sibling and not next_sibling and parent_type(LL[0]) == syms.atom:
# If it's an atom string, we need to check the parent atom's siblings.
parent = LL[0].parent
assert parent is not None # For type checkers.
Expand Down

0 comments on commit 5f4e810

Please sign in to comment.