def is_simple_bool(typehint) -> bool:
    """Check if typehint is bool or Union[None, bool]."""
    if typehint is bool:
        return True
    if hasattr(typehint, "__args__") and bool in typehint.__args__:
        return True
    return False