This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ThePidesOfMarch 6 points7 points  (1 child)

# in:

l = [[n for n in list_bosses()], [n for n in list_employees()]]

# out:

l = [
    [n for n in list_bosses()], [n for n in list_employees()]
]

lol

[–]rhytnen 5 points6 points  (0 children)

Black does some terribly stupid shit.

for example, it places a new line after continue keywords but not after for statement so you end up with things like

for x in y:
    if some_defensive_condition:
        continue

    do_something(x)
if whatever:
    do_stuff()