BadPython.com

Overly explicit empty-checks

        
def list_check(ls: List[int]):
    if ls == []:
        return None
    else:
        do_action_with_list(ls)