use literal type for image_folder field

This commit is contained in:
bymyself 2025-02-11 00:48:52 -07:00
parent 252faf810a
commit 57be03b31f

View File

@ -129,13 +129,8 @@ class InputTypeOptions(TypedDict):
# class InputTypeCombo(InputTypeOptions):
image_upload: bool
"""Specifies whether the input should have an image upload button and image preview attached to it. Requires that the input's name is `image`."""
image_folder: str
image_folder: Literal["input", "output", "temp"]
"""Specifies which folder to get preview images from if the input has the ``image_upload`` flag.
Valid values are:
- "input"
- "output"
- "temp"
"""
remote: RemoteInputOptions
"""Specifies the configuration for a remote input."""