Minimize changes: more closely resemble original conditional logic

This commit is contained in:
James Addison 2021-02-10 12:33:50 +00:00 committed by Łukasz Langa
parent 22127c633e
commit 0cbe19c813

View File

@ -6658,7 +6658,7 @@ def can_omit_invisible_parens(
# unnecessary. # unnecessary.
return True 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. # The rightmost non-omitted bracket pair is the one we want to explode on.
return True return True