Skip to content

Commit 058d793

Browse files
authored
Merge pull request #819 from nipype/no-implicit-helps
added guard against missing implicit helps in custom compose packages
2 parents ce9b34c + af54f3d commit 058d793

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pydra/compose/base/builder.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import types
33
from pathlib import Path
44
from copy import copy
5-
import attrs.validators
65
from pydra.utils.typing import TypeParser, is_optional, is_fileset_or_union
76
import attrs
87
from .task import Task, Outputs

pydra/compose/base/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def ensure_field_objects(
6767
else:
6868
arg.name = input_name
6969
if not arg.help:
70-
arg.help = input_helps.get(input_name, "")
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,
@@ -101,7 +101,7 @@ def ensure_field_objects(
101101
else:
102102
out.name = output_name
103103
if not out.help:
104-
out.help = output_helps.get(output_name, "")
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)