File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 2
2
import types
3
3
from pathlib import Path
4
4
from copy import copy
5
- import attrs .validators
6
5
from pydra .utils .typing import TypeParser , is_optional , is_fileset_or_union
7
6
import attrs
8
7
from .task import Task , Outputs
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ def ensure_field_objects(
67
67
else :
68
68
arg .name = input_name
69
69
if not arg .help :
70
- arg .help = input_helps .get (input_name , "" )
70
+ arg .help = input_helps .get (input_name , "" ) if input_helps else ""
71
71
elif is_type (arg ):
72
72
inputs [input_name ] = arg_type (
73
73
type = arg ,
@@ -101,7 +101,7 @@ def ensure_field_objects(
101
101
else :
102
102
out .name = output_name
103
103
if not out .help :
104
- out .help = output_helps .get (output_name , "" )
104
+ out .help = output_helps .get (output_name , "" ) if output_helps else ""
105
105
elif is_type (out ):
106
106
outputs [output_name ] = out_type (
107
107
type = out ,
You can’t perform that action at this time.
0 commit comments