BadPython.com

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)