from typing import Any
from typing import get_origin
from typing import Union


def _is_union(t: Any) -> bool:
    """Determine if this type is defined as a Union[...] type."""
    return get_origin(t) is Union