Skip to content

Commit 3ce1cd8

Browse files
committed
doctest-fix
1 parent 6ed57fe commit 3ce1cd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype2pydra/interface/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ def create_doctests(self, input_fields, nonstd_types):
940940
if val is None and is_fileset(tp):
941941
val = f"{tp.__name__}.mock()"
942942
if val is not attrs.NOTHING:
943-
doctest_str += f" >>> task.inputs.{nm} = {val}\n"
943+
doctest_str += f" >>> task.{nm} = {val}\n"
944944
doctest_str += " >>> task.cmdline\n"
945945
doctest_str += f" '{doctest.cmdline}'"
946946
doctest_str += "\n\n\n"

0 commit comments

Comments
 (0)