Many redundant `else: pass` statements
153957 opened this issue · comments
Arne de Laat commented
The pass
statement does not do anything in Python, it is simply placeholder code.
The else:
clause is only evaluated if the if
and elif
s preceding it are False and else:
is optional.
So, since they only do pass
, I think it would be safe to remove these else: pass
statements (77 occurrences).