1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-04 07:52:46 +08:00

Small refactoring to make iterating on V3 schema faster without needing to edit execution.py code

This commit is contained in:
kosinkadink1@gmail.com
2025-06-12 17:07:10 -07:00
parent 6854864db9
commit cf7312d82c
3 changed files with 34 additions and 23 deletions

View File

@@ -17,7 +17,7 @@ from comfy_execution.graph import get_input_info, ExecutionList, DynamicPrompt,
from comfy_execution.graph_utils import is_link, GraphBuilder
from comfy_execution.caching import HierarchicalCache, LRUCache, DependencyAwareCache, CacheKeySetInputSignature, CacheKeySetID
from comfy_execution.validation import validate_node_input
from comfy_api.v3.io import NodeOutput, ComfyNodeV3, prepare_class_clone
from comfy_api.v3.io import NodeOutput, ComfyNodeV3
class ExecutionResult(Enum):
SUCCESS = 0
@@ -186,7 +186,7 @@ def _map_node_over_list(obj, input_data_all, func, allow_interrupt=False, execut
# V3
if isinstance(obj, ComfyNodeV3):
type(obj).VALIDATE_CLASS()
class_clone = prepare_class_clone(obj)
class_clone = type(obj).prepare_class_clone()
results.append(type(obj).execute.__func__(class_clone, **inputs))
# V1
else: