black icon indicating copy to clipboard operation
black copied to clipboard

Black explodes list unnecessarily with long variable name

Open hauntsaninja opened this issue 1 year ago • 0 comments

Black explodes the list in the following:

def foo():
    assert long_long_long_long_var == [
        0, 1, 2, 3, 4, 10, 11, 12, 13, 14, 15, 16, 17, 18
    ]

If you rename the variable to something short, Black no longer explodes the list.

hauntsaninja avatar Nov 07 '23 00:11 hauntsaninja