Skip to content

Commit 997bbe2

Browse files
committed
if the return type of a decorated function/workflow is None then outputs are set to be empty
1 parent bfa79ba commit 997bbe2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pydra/compose/base/helpers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,10 @@ def extract_function_inputs_and_outputs(
253253
elif output is ty.Any:
254254
output = return_type
255255
outputs = {output_name: output}
256-
else:
256+
elif return_type is not None:
257257
outputs = {"out": return_type}
258+
else:
259+
outputs = {}
258260
return inputs, outputs
259261

260262

0 commit comments

Comments
 (0)