from typing import Type
from typing import Tuple


def _get_args_py37(type_: Type) -> Tuple[Type]:
    """typing.get_args is introduced in Python 3.8, but we need a get_args that
    is compatible with 3.7.

    Args:
        type_ (Type): A type.

    Returns:
        Tuple[Type]: The type arguments of `type_`.
    """
    # uses typing for types
    return type_.__args__ if hasattr(type_, '__args__') else tuple()