(
    kwargs: Dict[str, Any], aliases: Dict[str, str], recurse: bool = False,
)
return translator.translate(kwargs)
Given a dict of keyword arguments and a dict mapping aliases to their
    canonical values, canonicalize the keys in the kwargs dict.

    If recurse is True, perform this operation recursively.

    :return: A dict containing all the values in kwargs referenced by their
        canonical key.
    :raises: `AliasException`, if a canonical key is defined more than once.
Given a dict of keyword arguments and a dict mapping aliases to their
    canonical values, canonicalize the keys in the kwargs dict.
Given a dict of keyword arguments and a dict mapping aliases to their canonical values canonicalize the keys in the kwargs dict .
def translate_aliases(
    kwargs: Dict[str, Any], aliases: Dict[str, str], recurse: bool = False,
) -> Dict[str, Any]:
    """Given a dict of keyword arguments and a dict mapping aliases to their
    canonical values, canonicalize the keys in the kwargs dict.

    If recurse is True, perform this operation recursively.

    :return: A dict containing all the values in kwargs referenced by their
        canonical key.
    :raises: `AliasException`, if a canonical key is defined more than once.
    """
    translator = Translator(aliases, recurse)
    return translator.translate(kwargs)
def translate_aliases ( kwargs : Dict [ str , Any ] , aliases : Dict [ str , str ] , recurse : bool = False , ) -> Dict [ str , Any ] : translator = Translator ( aliases , recurse ) return translator . translate ( kwargs )