Skip to content

Commit af54f3d

Browse files
committed
ensure that helps are empty string not none
1 parent c279537 commit af54f3d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pydra/compose/base/helpers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def ensure_field_objects(
6666
)
6767
else:
6868
arg.name = input_name
69-
if not arg.help and input_helps:
70-
arg.help = input_helps.get(input_name, "")
69+
if not arg.help:
70+
arg.help = input_helps.get(input_name, "") if input_helps else ""
7171
elif is_type(arg):
7272
inputs[input_name] = arg_type(
7373
type=arg,
@@ -100,8 +100,8 @@ def ensure_field_objects(
100100
)
101101
else:
102102
out.name = output_name
103-
if not out.help and output_helps:
104-
out.help = output_helps.get(output_name, "")
103+
if not out.help:
104+
out.help = output_helps.get(output_name, "") if output_helps else ""
105105
elif is_type(out):
106106
outputs[output_name] = out_type(
107107
type=out,

0 commit comments

Comments
 (0)