Renamed prepare_class_clone to PREPARE_CLASS_CLONE

This commit is contained in:
kosinkadink1@gmail.com
2025-07-14 02:59:59 -05:00
parent 039a64be76
commit a19ca62354
2 changed files with 3 additions and 3 deletions

View File

@@ -1178,7 +1178,7 @@ class ComfyNodeV3:
raise Exception(f"Invalid return type from node: {type(to_return)}")
@classmethod
def prepare_class_clone(cls, hidden_inputs: dict) -> type[ComfyNodeV3]:
def PREPARE_CLASS_CLONE(cls, hidden_inputs: dict) -> type[ComfyNodeV3]:
"""Creates clone of real node class to prevent monkey-patching."""
c_type: type[ComfyNodeV3] = cls if is_class(cls) else type(cls)
type_clone: type[ComfyNodeV3] = shallow_clone_class(c_type)