from typing import Optional
from typing import Dict


def merge_args(*args: Optional[Dict]) -> Dict:
    """Merge multi ple dicts into one dict.

    Args:
        *args: Dicts to merge.

    Returns:
        dict: Merged dict.
    """
    return {k: v for d in args if d for k, v in d.items()}