1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-03 07:26:31 +08:00

Support validate_inputs for v3 replacing VALIDATE_INPUTS, support check_lazy_mix for v3, prep for renaming IS_CHANGED to fingerprint_inputs, reorder some class methods

This commit is contained in:
kosinkadink1@gmail.com
2025-07-09 02:26:35 -05:00
parent 936bf6b60f
commit 82e6eeab75
3 changed files with 81 additions and 27 deletions

View File

@@ -73,7 +73,7 @@ class V3TestNode(io.ComfyNodeV3):
)
@classmethod
def VALIDATE_INPUTS(cls, image: io.Image.Type, some_int: int, combo: io.Combo.Type, combo2: io.MultiCombo.Type, xyz: XYZ.Type=None, mask: io.Mask.Type=None, **kwargs):
def validate_inputs(cls, image: io.Image.Type, some_int: int, combo: io.Combo.Type, combo2: io.MultiCombo.Type, xyz: XYZ.Type=None, mask: io.Mask.Type=None, **kwargs):
if some_int < 0:
raise Exception("some_int must be greater than 0")
if combo == "c":
@@ -172,6 +172,15 @@ class NInputsTest(io.ComfyNodeV3):
],
)
@classmethod
def validate_inputs(cls, nmock, nmock2):
return True
@classmethod
def check_lazy_status(cls, **kwargs) -> list[str]:
need = [name for name in kwargs if kwargs[name] is None]
return need
@classmethod
def execute(cls, nmock, nmock2):
first_image = nmock[0]