Invert Any/All in Body¶
Sourcery refactoring id:
all statements that can be inverted
b = any(not a for a in things)
b = all(things)
A negation is more difficult to read than a straightforward statement. This refactoring inverts the any or all to remove the negation.