Update RangeSpec step_type default value to "float"
This commit is contained in:
parent
666248ee40
commit
6af34864ad
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue