Skip to content

Commit f3c3d40

Browse files
committed
fix: return same type of value for traits containing lists
1 parent 1823e31 commit f3c3d40

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
@@ -502,7 +502,7 @@ def _recurse_on_path_traits(func, thistrait, value, cwd):
502502
elif thistrait.is_trait_type(traits.List):
503503
innertrait, = thistrait.inner_traits
504504
if not isinstance(value, (list, tuple)):
505-
value = [value]
505+
return _recurse_on_path_traits(func, innertrait, value, cwd)
506506

507507
value = [_recurse_on_path_traits(func, innertrait, v, cwd)
508508
for v in value]

0 commit comments

Comments
 (0)