On the example there's: # in: TracebackException.from_exception(exc, limit, lookup_lines, capture_locals) # out: TracebackException.from_exception( exc, limit, lookup_lines, capture_locals ) I don't like this one. I would prefer that if you have )/]/} on the next line, then you should have a trailing comma, e.g.: TracebackException.from_exception( exc, limit, lookup_lines, capture_locals, ) Also I would prefer one-pe…
Sure you can prefer this but it is not the point. The point is that having ONE average way to do it > several best ways for several people.
If this cannot fit in one line:
foo(arg1, arg2)
My first choice would be: foo(
arg1,
arg2,
)
Second choice would be: foo(
arg1, arg2,
)
While Black chooses: foo(
arg1, arg2
)
And made some unconvincing argument about it:> Unnecessary trailing commas are removed if an expression fits in one line. This makes it 1% more likely that your line won't exceed the allotted line length limit. Moreover, in this scenario, if you added another argument to your call, you'd probably fit it in the same line anyway. That doesn't make diffs any larger.
Who cares about the 1% chance of not exceeding the line length limit, really?