Open kamahen opened 6 years ago
Tuples are treated differently from lists and dicts / sets. There's no good reason for it, except that function definitions / calls kind of look like tuples to YAPF. This is a long standing issue that I would like to resolve though.
The split_before_closing_bracket
seems a bit strange -- it seems to ignore a trailing ,
. Is that intended behavior?
I changed my
__slots__
assignments from tuple to list (I got tired of accidentally leaving out the trailing comma in singleton tuples, and to my surprise yapf formatted them differently. Is there a knob for avoiding this? (I would have expected this yapf behavior if I had had a trailing comma ... I tried flipping the setting forcoalesce_brackets
, but that didn't help.vs
And here are the diffs from the default style: