CURVE type (#12581)

* CURVE type

* fix: update typed wrapper unwrap keys to __type__ and __value__

* code improve

* code improve
This commit is contained in:
Terry Jia
2026-03-03 19:58:53 -05:00
committed by GitHub
parent f719a9d928
commit b6ddc590ed
2 changed files with 22 additions and 6 deletions

View File

@@ -876,12 +876,14 @@ async def validate_inputs(prompt_id, prompt, item, validated):
continue
else:
try:
# Unwraps values wrapped in __value__ key. This is used to pass
# list widget value to execution, as by default list value is
# reserved to represent the connection between nodes.
if isinstance(val, dict) and "__value__" in val:
val = val["__value__"]
inputs[x] = val
# Unwraps values wrapped in __value__ key or typed wrapper.
# This is used to pass list widget values to execution,
# as by default list value is reserved to represent the
# connection between nodes.
if isinstance(val, dict):
if "__value__" in val:
val = val["__value__"]
inputs[x] = val
if input_type == "INT":
val = int(val)