from typing import Callable
from typing import Any
from typing import Tuple
from typing import get_type_hints


def hints(function: Callable[..., Any]) -> Tuple[Any, ...]:
    """Get the type hints for a given function.

    Args:
        function (Callable[..., Any]): Function to get annotations for.

    Returns:
        Tuple[Any, ...]: Ordered type annotations.
    """

    return tuple(annotation for parameter, annotation in get_type_hints(function).items() if parameter != "return")