il2_rest/util.py
def filter_none(d) :
    """
    Remove items of a dictionary with None values.

    Args:
        d (:obj:`dict`): Dictionary object.

    Returns:
        :obj:`dict`: Dictionary without None items.
    """
    if isinstance(d, dict) :
        return {k: filter_none(v) for k,v in d.items() if v is not None}
    elif isinstance(d, list) :
        return [filter_none(v) for v in d]
    else :
        return d

    Remove items of a dictionary with None values.

    Args:
        d (:obj:`dict`): Dictionary object.

    Returns:
        :obj:`dict`: Dictionary without None items.
    
Remove items of a dictionary with None values.
Remove items of a dictionary with None values .
def filter_none(d) :
    if isinstance(d, dict) :
        return {k: filter_none(v) for k,v in d.items() if v is not None}
    elif isinstance(d, list) :
        return [filter_none(v) for v in d]
    else :
        return d
def filter_none ( d ) : if isinstance ( d , dict ) : return { k : filter_none ( v ) for k , v in d . items ( ) if v is not None } elif isinstance ( d , list ) : return [ filter_none ( v ) for v in d ] else : return d
Remove items of a dictionary with None values.
Remove items of a dictionary with None values .
"""
    Remove items of a dictionary with None values.

    Args:
        d (:obj:`dict`): Dictionary object.

    Returns:
        :obj:`dict`: Dictionary without None items.
    """
:obj:`dict`: Dictionary without None items.
: obj : ` dict ` : Dictionary without None items .
d
d (
`dict`): Dictionary object.
` dict ` ) : Dictionary object .