from typing import Sequence


def _is_sequence(typ):
    """
    returns True if the type in question
    is a Sequence[] object from the typing module.
    """
    # PEP_560 deprecates issubclass for
    # List types, for the time being
    # we'll support a specific escape hatch.
    if hasattr(typ, "__origin__"):
        return issubclass(typ.__origin__, Sequence)
    return False