def is_classvar(a_type: Any) -> bool:
    """Check if a type is a ClassVar.

    Args:
        a_type: The type to check.

    Returns:
        Whether the type is a ClassVar.
    """
    return (
        a_type is ClassVar
        or (type(a_type) is _GenericAlias and a_type.__origin__ is ClassVar)
        or (
            type(a_type) is ForwardRef and a_type.__forward_arg__.startswith("ClassVar")
        )
    )
Check if a type is a ClassVar.

    Args:
        a_type: The type to check.

    Returns:
        Whether the type is a ClassVar.
    
reflex/utils/types.py