from typing import Any


def optional(**kwargs: Any) -> dict:
    """
    Take a set of keyword arguments and return a dict with only the not-None values.

    Returns:
        dict
    """
    return {key: value for key, value in kwargs.items() if value is not None}