Blackening redux (was: Re: Auto-formatting code with black - object now if you have a strong opinion)
mharbison72 at gmail.com
Wed May 8 22:55:56 EDT 2019
On Wed, 08 May 2019 17:13:30 -0400, Martin von Zweigbergk
<martinvonz at google.com> wrote:
> *From: *Augie Fackler <raf at durin42.com>
> *Date: *Wed, May 8, 2019 at 2:05 PM
> *To: *martinvonz
> *Cc: *Matt Harbison, Mercurial-devel, Gregory Szorc
>> > On May 8, 2019, at 16:53, martinvonz <martinvonz at google.com> wrote:
>> >> * one-tuples will get forced down to a single line, even if they
>> started on multiple lines
>> > I don't know what this means. One-tuples are very rare anyway, so it
>> probably doesn't matter much.
>> If you write this:
>> FOO = (
>> black will make it be
>> FOO = ('bar',)
>> even though there's a trailing comma, because it's the one place where a
>> trailing comma is required in Python. Does that make sense?
> The example makes sense, but why would we want a one-tuple on multiple
I think `directsymbols` in import-checker.py is an example that I noticed
in D6342. Maybe it can be turned into a list.
More information about the Mercurial-devel