import attr


def boolean_attribute(value: bool) -> bool:
    """
    Wrapper for attr.ib that can be used to overwrite simple boolean attributes in a class or parameter group
    definition.

    :param value: boolean to be added as attribute
    :return: attr.ib boolean attribute with its default value set to value
    """
    return attr.ib(default=value, type=bool, kw_only=True)