Skip to content

Commit

Permalink
Stop addition of trailing commas
Browse files Browse the repository at this point in the history
  • Loading branch information
harenbrs committed Apr 8, 2020
1 parent 8530bd2 commit 9e0ffbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion black.py
Original file line number Diff line number Diff line change
Expand Up @@ -2753,7 +2753,7 @@ def delimiter_split(line: Line, features: Collection[Feature] = ()) -> Iterator[

current_line = Line(depth=line.depth, inside_brackets=line.inside_brackets)
lowest_depth = sys.maxsize
trailing_comma_safe = True
trailing_comma_safe = False

def append_to_line(leaf: Leaf) -> Iterator[Line]:
"""Append `leaf` to current line or to new line if appending impossible."""
Expand Down

0 comments on commit 9e0ffbe

Please sign in to comment.