Python code formatted by Black. An elif-condition with two clauses is broken in the middle of a clause because it happens to have parentheses, instead of on the `and`. Also, Black’s line continuation rules dedent the second part of the clause so it’s in line with the elif, making it seem like the elif block is done and we are in a new block.
https://cdn.fosstodon.org/media_attachments/files/112/572/252/387/460/422/original/961aca5a52a0c3bf.png