Update RangeSpec step_type default value to "float"

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-31 22:06:31 -03:00
commit 6af34864ad

View file

@ -4,10 +4,10 @@ from pydantic import BaseModel, field_validator
class RangeSpec(BaseModel):
step_type: Literal["int", "float"] = "float"
min: float = -1.0
max: float = 1.0
step: float = 0.1
step_type: Literal["int", "float"] = "float"
@field_validator("max")
@classmethod