Sourcery refactoring id:
not any or
not all statements to
b = not all(a > b for a in things)
b = any(a <= b for a in things)
A negation is more difficult to read than a straightforward statement. This refactoring inverts the any or all to remove the negation.