1313from pydra .engine .helpers import ensure_list
1414from .utils import import_module_from_path
1515
16-
1716@attrs .define
1817class TaskConverter :
1918
@@ -326,7 +325,6 @@ def types_to_names(spec_fields):
326325 spec_str += f"{ self .task_name } _input_spec = specs.SpecInfo(name='Input', fields=input_fields, bases=(specs.ShellSpec,))\n \n "
327326 spec_str += f"output_fields = { output_fields_str } \n "
328327 spec_str += f"{ self .task_name } _output_spec = specs.SpecInfo(name='Output', fields=output_fields, bases=(specs.ShellOutSpec,))\n \n "
329-
330328 spec_str += f"class { self .task_name } (ShellCommandTask):\n "
331329 if self .doctest :
332330 spec_str += self .create_doctest ()
@@ -415,7 +413,6 @@ def write_test_error(self, input_error):
415413 spec_str += f" task = { self .task_name } (in_file=in_file, **inputs)\n "
416414 spec_str += " with pytest.raises(eval(error)):\n "
417415 spec_str += " task.generated_output_names\n "
418-
419416 return spec_str
420417
421418 def create_doctest (self ):
@@ -471,4 +468,4 @@ def create_doctest(self):
471468 ("'TYPE_MultiOutputObj'" , "specs.MultiOutputObj" ),
472469 ("'TYPE_MultiInputFile'" , "specs.MultiInputFile" ),
473470 ("'TYPE_MultiOutputFile'" , "specs.MultiOutputFile" ),
474- ]
471+ ]
0 commit comments