from typing import Any


def _check_type(annotation: Any) -> bool:
    """Check if the annotation represents a class/Type"""

    if (
        getattr(annotation, "__qualname__", None) == "type"
        and getattr(annotation, "__module__", None) == "builtins"
    ):
        # Check for something like 'type[...]'
        return True
    elif (
        getattr(annotation, "_name", None) == "Type"
        and getattr(annotation, "__module__", None) == "typing"
    ):
        # Check for something like 'typing.Type[...]'
        return True
    return False