From 3c0365f6d65813d4fbdf6c283e60fe324734601d Mon Sep 17 00:00:00 2001 From: Jedrzej Kosinski Date: Thu, 22 Jan 2026 16:53:51 -0800 Subject: [PATCH] Rename UseValue to SetValue --- comfy_api/latest/_node_replace.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/comfy_api/latest/_node_replace.py b/comfy_api/latest/_node_replace.py index f179d9809..8e90eebb7 100644 --- a/comfy_api/latest/_node_replace.py +++ b/comfy_api/latest/_node_replace.py @@ -46,7 +46,7 @@ class InputMap: """ Map inputs of node replacement. - Use InputMap.OldId or InputMap.UseValue for mapping purposes. + Use InputMap.OldId or InputMap.SetValue for mapping purposes. """ class _Assign: def __init__(self, assign_type: str): @@ -70,12 +70,12 @@ class InputMap: "old_id": self.old_id, } - class UseValue(_Assign): + class SetValue(_Assign): """ Use the given value for the input of the new node when replacing; assumes input is a widget. """ def __init__(self, value: Any): - super().__init__("use_value") + super().__init__("set_value") self.value = value def as_dict(self): @@ -83,7 +83,7 @@ class InputMap: "value": self.value, } - def __init__(self, new_id: str, assign: OldId | UseValue): + def __init__(self, new_id: str, assign: OldId | SetValue): self.new_id = new_id self.assign = assign