I would prefer PEP 8 to explicitly discourage putting ):
on a line by itself, since I find it ugly, Black notwithstanding. This is different from putting the last bracket of a tuple, list or call on a line by itself, since there’s nothing following that’s indented relative to the start of the construct.
5 Likes