mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-05 03:00:33 +08:00
Send is_input_list on v1 and v3 schema to frontend (#12188)
Some checks are pending
Python Linting / Run Ruff (push) Waiting to run
Python Linting / Run Pylint (push) Waiting to run
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.10, [self-hosted Linux], stable) (push) Waiting to run
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.11, [self-hosted Linux], stable) (push) Waiting to run
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.12, [self-hosted Linux], stable) (push) Waiting to run
Full Comfy CI Workflow Runs / test-unix-nightly (12.1, , linux, 3.11, [self-hosted Linux], nightly) (push) Waiting to run
Execution Tests / test (macos-latest) (push) Waiting to run
Execution Tests / test (ubuntu-latest) (push) Waiting to run
Execution Tests / test (windows-latest) (push) Waiting to run
Test server launches without errors / test (push) Waiting to run
Unit Tests / test (macos-latest) (push) Waiting to run
Unit Tests / test (ubuntu-latest) (push) Waiting to run
Unit Tests / test (windows-2022) (push) Waiting to run
Some checks are pending
Python Linting / Run Ruff (push) Waiting to run
Python Linting / Run Pylint (push) Waiting to run
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.10, [self-hosted Linux], stable) (push) Waiting to run
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.11, [self-hosted Linux], stable) (push) Waiting to run
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.12, [self-hosted Linux], stable) (push) Waiting to run
Full Comfy CI Workflow Runs / test-unix-nightly (12.1, , linux, 3.11, [self-hosted Linux], nightly) (push) Waiting to run
Execution Tests / test (macos-latest) (push) Waiting to run
Execution Tests / test (ubuntu-latest) (push) Waiting to run
Execution Tests / test (windows-latest) (push) Waiting to run
Test server launches without errors / test (push) Waiting to run
Unit Tests / test (macos-latest) (push) Waiting to run
Unit Tests / test (ubuntu-latest) (push) Waiting to run
Unit Tests / test (windows-2022) (push) Waiting to run
This commit is contained in:
parent
6ea8c128a3
commit
aa6f7a83bb
@ -1248,6 +1248,7 @@ class Hidden(str, Enum):
|
|||||||
class NodeInfoV1:
|
class NodeInfoV1:
|
||||||
input: dict=None
|
input: dict=None
|
||||||
input_order: dict[str, list[str]]=None
|
input_order: dict[str, list[str]]=None
|
||||||
|
is_input_list: bool=None
|
||||||
output: list[str]=None
|
output: list[str]=None
|
||||||
output_is_list: list[bool]=None
|
output_is_list: list[bool]=None
|
||||||
output_name: list[str]=None
|
output_name: list[str]=None
|
||||||
@ -1474,6 +1475,7 @@ class Schema:
|
|||||||
info = NodeInfoV1(
|
info = NodeInfoV1(
|
||||||
input=input,
|
input=input,
|
||||||
input_order={key: list(value.keys()) for (key, value) in input.items()},
|
input_order={key: list(value.keys()) for (key, value) in input.items()},
|
||||||
|
is_input_list=self.is_input_list,
|
||||||
output=output,
|
output=output,
|
||||||
output_is_list=output_is_list,
|
output_is_list=output_is_list,
|
||||||
output_name=output_name,
|
output_name=output_name,
|
||||||
|
|||||||
@ -656,6 +656,7 @@ class PromptServer():
|
|||||||
info = {}
|
info = {}
|
||||||
info['input'] = obj_class.INPUT_TYPES()
|
info['input'] = obj_class.INPUT_TYPES()
|
||||||
info['input_order'] = {key: list(value.keys()) for (key, value) in obj_class.INPUT_TYPES().items()}
|
info['input_order'] = {key: list(value.keys()) for (key, value) in obj_class.INPUT_TYPES().items()}
|
||||||
|
info['is_input_list'] = getattr(obj_class, "INPUT_IS_LIST", False)
|
||||||
info['output'] = obj_class.RETURN_TYPES
|
info['output'] = obj_class.RETURN_TYPES
|
||||||
info['output_is_list'] = obj_class.OUTPUT_IS_LIST if hasattr(obj_class, 'OUTPUT_IS_LIST') else [False] * len(obj_class.RETURN_TYPES)
|
info['output_is_list'] = obj_class.OUTPUT_IS_LIST if hasattr(obj_class, 'OUTPUT_IS_LIST') else [False] * len(obj_class.RETURN_TYPES)
|
||||||
info['output_name'] = obj_class.RETURN_NAMES if hasattr(obj_class, 'RETURN_NAMES') else info['output']
|
info['output_name'] = obj_class.RETURN_NAMES if hasattr(obj_class, 'RETURN_NAMES') else info['output']
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user