from typing import Union
from typing import Type
from typing import Any
import inspect
from typing import Sequence


def is_sequence(item: Union[object, Type[Any]]) -> bool:
    """Returns if 'item' is a sequence and is NOT a str type."""
    if not inspect.isclass(item):
        item = item.__class__ 
    return (
        issubclass(item, Sequence)  # type: ignore  
        and not issubclass(item, str))