BadPython.com
Submit Bad Python
Suggestion for
"Overly explicit empty-checks"
Simpler empty list check, remove unnecessary else
def list_check(ls: List[int]): if not ls: return None do_action_with_list(ls)
Next Suggestion:
Just put the non-empty check in the function itself