From 57be03b31f2bcb853fbe3c5d367248c3dd19f266 Mon Sep 17 00:00:00 2001 From: bymyself Date: Tue, 11 Feb 2025 00:48:52 -0700 Subject: [PATCH] use literal type for image_folder field --- comfy/comfy_types/node_typing.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/comfy/comfy_types/node_typing.py b/comfy/comfy_types/node_typing.py index fa0d4dc3..0f70fdb2 100644 --- a/comfy/comfy_types/node_typing.py +++ b/comfy/comfy_types/node_typing.py @@ -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."""