from typing import Any


def expand_to_tuple(item: Any) -> tuple[Any, ...]:
    """Wraps anything but tuple into a tuple.

    Args:
        item: any sequence or a single item.

    Returns:
        a tuple.

    >>> from redex import util
    >>> util.expand_to_tuple((1,))
    (1,)
    >>> util.expand_to_tuple((1,2))
    (1, 2)
    """
    return item if isinstance(item, tuple) else (item,)