-
Please don’t do this. Instead, use Black. github.com/psf/black Even if you don’t *like* Black’s output, there’s a incredible amount of value in its consistency. (This code is difficult to read, and maintaining these lines would likely result in a whitespace patch ricochet.)
-
Coming back to this to confess: Black doesn’t actually solve the problem where the list comprehensions like this are hard to read (weird-non-PEP8 capital letters aside). It does help with whitespace ricochet, though.