mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-04-29 02:41:27 +00:00
Make match type receive_type pass validation
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
from comfy_api.latest import IO
|
||||||
|
|
||||||
|
|
||||||
def validate_node_input(
|
def validate_node_input(
|
||||||
@@ -23,6 +24,11 @@ def validate_node_input(
|
|||||||
if not received_type != input_type:
|
if not received_type != input_type:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
# If the received type is a MatchType, we can return immediately;
|
||||||
|
# validation for this is handled by the frontend
|
||||||
|
if received_type == IO.MatchType.io_type:
|
||||||
|
return True
|
||||||
|
|
||||||
# If input_type is a Combo, frontend permits a Combo output to be connected,
|
# If input_type is a Combo, frontend permits a Combo output to be connected,
|
||||||
# but it is defined as a tuple of values with V3 schema.
|
# but it is defined as a tuple of values with V3 schema.
|
||||||
# This probably should be dealt with sending one thing to the frontend and another to the backend,
|
# This probably should be dealt with sending one thing to the frontend and another to the backend,
|
||||||
|
|||||||
Reference in New Issue
Block a user