Toloka documentation

IntegerSpec

toloka.client.project.field_spec.IntegerSpec | Source code

IntegerSpec(
    self,
    *,
    required: Optional[bool] = True,
    hidden: Optional[bool] = False,
    min_value: Optional[int] = None,
    max_value: Optional[int] = None,
    allowed_values: Optional[List[int]] = None
)

An integer field specification

Parameters Description

Parameters Type Description
required Optional[bool]

Whether the object or input field is required.

hidden Optional[bool]

Whether to hide the input field from Tolokers.

min_value Optional[int]

Minimum value of the number

max_value Optional[int]

Maximum value of the number

allowed_values Optional[List[int]]

Allowed values