import typing


def prepare_dict(
        dict_: typing.Optional[typing.Dict[str, typing.Any]]
) -> typing.Dict[str, typing.Any]:
    """
    Prepare dict for request
    :param dict_: dict for prepare
    :return: prepared dict
    """

    if dict_ is None:
        dict_ = {}
    else:
        dict_ = {name: value for name, value in dict_.items() if value is not None}

    return dict_