mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2025-12-08 21:44:33 +08:00
Make match type receive_type pass validation
This commit is contained in:
parent
53c4aab268
commit
bd78daa9a7
@ -1,4 +1,5 @@
|
||||
from __future__ import annotations
|
||||
from comfy_api.latest import IO
|
||||
|
||||
|
||||
def validate_node_input(
|
||||
@ -23,6 +24,11 @@ def validate_node_input(
|
||||
if not received_type != input_type:
|
||||
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,
|
||||
# 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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user