from typing import Sequence


def is_sequence(s):
    """Check for sequence

    Args:
        s: object to check

    Returns:
        bool: True if `s` is a sequence (but not a `str`), False otherwise.
    """
    return isinstance(s, Sequence) and not isinstance(s, str)