from typing import Any
from typing import Tuple


def is_generic_tuple(annotation: Any):
    """Checks if ANNOTATION is Tuple[...]."""
    # python<3.7 reports Tuple in __origin__, while python>=3.7 reports tuple
    return getattr(annotation, '__origin__', None) in (Tuple, tuple)