from typing import List


def remove_nulls(obj):
    """Recursive function to remove nulls in a dict."""
    if isinstance(obj, List):
        return [remove_nulls(list_item) for list_item in obj]
    if not isinstance(obj, dict):
        return obj
    return {k: remove_nulls(v) for k, v in obj.items() if v is not None}