Skip to content

Commit 4591be0

Browse files
authored
Merge f48eebb into 426564e
2 parents 426564e + f48eebb commit 4591be0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pydra/engine/helpers_file.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ def template_update_single(
628628
based on the value from inputs_dict
629629
(checking the types of the fields, that have "output_file_template)"
630630
"""
631-
from .specs import File, MultiOutputFile, Directory
631+
from .specs import File, MultiOutputFile, Directory, LazyField
632632

633633
# if input_dict_st with state specific value is not available,
634634
# the dictionary will be created from inputs object
@@ -642,7 +642,9 @@ def template_update_single(
642642
"has to be a string or Union[str, bool]"
643643
)
644644
inp_val_set = inputs_dict_st[field.name]
645-
if inp_val_set is not attr.NOTHING and not isinstance(inp_val_set, (str, bool)):
645+
if inp_val_set is not attr.NOTHING and not isinstance(
646+
inp_val_set, (str, bool, LazyField)
647+
):
646648
raise Exception(
647649
f"{field.name} has to be str or bool, but {inp_val_set} set"
648650
)

0 commit comments

Comments
 (0)