Skip to content

Commit 7f213cd

Browse files
committed
debugging multioutput type
1 parent 3cd6581 commit 7f213cd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pydra/engine/helpers.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,10 @@ def from_list_if_single(obj: ty.Any) -> ty.Any:
127127
return obj
128128
if is_lazy(obj):
129129
return obj
130-
obj = list(obj)
131-
if len(obj) == 1:
132-
return obj[0]
130+
if isinstance(obj, ty.Sequence) and not isinstance(obj, str):
131+
obj = list(obj)
132+
if len(obj) == 1:
133+
return obj[0]
133134
return obj
134135

135136

0 commit comments

Comments
 (0)