File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -628,7 +628,7 @@ def template_update_single(
628
628
based on the value from inputs_dict
629
629
(checking the types of the fields, that have "output_file_template)"
630
630
"""
631
- from .specs import File , MultiOutputFile , Directory
631
+ from .specs import File , MultiOutputFile , Directory , LazyField
632
632
633
633
# if input_dict_st with state specific value is not available,
634
634
# the dictionary will be created from inputs object
@@ -642,7 +642,9 @@ def template_update_single(
642
642
"has to be a string or Union[str, bool]"
643
643
)
644
644
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
+ ):
646
648
raise Exception (
647
649
f"{ field .name } has to be str or bool, but { inp_val_set } set"
648
650
)
You can’t perform that action at this time.
0 commit comments