Skip to content

Commit a06166d

Browse files
committed
fix: return same type of value for traits containing lists
1 parent 5f917f2 commit a06166d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/base/traits_extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ def _recurse_on_path_traits(func, thistrait, value, cwd):
526526
elif thistrait.is_trait_type(traits.List):
527527
innertrait, = thistrait.inner_traits
528528
if not isinstance(value, (list, tuple)):
529-
value = [value]
529+
return _recurse_on_path_traits(func, innertrait, value, cwd)
530530

531531
value = [_recurse_on_path_traits(func, innertrait, v, cwd)
532532
for v in value]

0 commit comments

Comments
 (0)