def do_strip_empty(value):
    return {
        dict: strip_empty,
        list: strip_list,
        tuple: strip_list
    }.get(type(value), lambda x: x)(value)
Filters empty values from container types
dataset/ETHPy150Open CenterForOpenScience/scrapi/scrapi/linter/document.py/do_strip_empty