Toloka documentation

FloatSpec

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

FloatSpec(
    self,
    *,
    required: Optional[bool] = True,
    hidden: Optional[bool] = False,
    min_value: Optional[float] = None,
    max_value: Optional[float] = None
)

An floating point 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[float]

Minimum value of the number

max_value Optional[float]

Maximum value of the number