Skip to content

Commit

Permalink
Minimize changes: more closely resemble original conditional logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison authored and ambv committed Feb 20, 2021
1 parent 22127c6 commit 0cbe19c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/black/__init__.py
Expand Up @@ -6658,7 +6658,7 @@ def can_omit_invisible_parens(
# unnecessary.
return True

if penultimate.type == token.COMMA:
if line.magic_trailing_comma and penultimate.type == token.COMMA:
# The rightmost non-omitted bracket pair is the one we want to explode on.
return True

Expand Down

0 comments on commit 0cbe19c

Please sign in to comment.