refactor: Update DropdownInput options to use list[str] type hinting
This commit is contained in:
parent
924df4bdad
commit
9145640ed1
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from typing import Any, AsyncIterator, Callable, Iterator, Optional, Union
|
||||
from typing import Any, AsyncIterator, Iterator, Optional, Union
|
||||
|
||||
from loguru import logger
|
||||
from pydantic import Field, field_validator
|
||||
|
|
@ -284,7 +284,7 @@ class DropdownInput(BaseInputMixin, DropDownMixin):
|
|||
"""
|
||||
|
||||
field_type: Optional[SerializableFieldTypes] = FieldTypes.TEXT
|
||||
options: Optional[Union[list[str], Callable]] = None
|
||||
options: list[str] = Field(default_factory=list)
|
||||
|
||||
|
||||
class FileInput(BaseInputMixin, ListableInputMixin, FileMixin):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue