Skip to content

Allow neither both

AllowNeitherBothSetting #

AllowNeitherBothSetting(delay_ms: int = 5000)

Bases: RapidataSetting

Only for compare tasks. Enables an "Unsure" button that allows users to select neither or both options.

The delay controls how many milliseconds before the unsure button appears.

Parameters:

Name Type Description Default
delay_ms int

Delay in milliseconds before the unsure button appears. Defaults to 5000.

5000
Source code in src/rapidata/rapidata_client/settings/allow_neither_both.py
def __init__(self, delay_ms: int = 5000):
    if delay_ms < 0:
        raise ValueError(
            "The delay must be greater than or equal to 0 milliseconds."
        )
    super().__init__(key="compare_unsure", value=delay_ms)