I did some readability improvements to some boolean checks.
Instead of checking if an element is contained in an list and inverting the condition with not , I used not in.
Instead of checking if two objects are equal and inverting the condition with not , I used!= (not equal).
And instead of checking if an boolean is equal to False, I used not directly.
I did some readability improvements to some boolean checks. Instead of checking if an element is contained in an list and inverting the condition with
not
, I usednot in
. Instead of checking if two objects are equal and inverting the condition withnot
, I used!=
(not equal). And instead of checking if an boolean is equal toFalse
, I usednot
directly.