Skip to content

Commit a36be3e

Browse files
tcloseeffigies
andauthored
Update pydra/engine/helpers_file.py
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent b6e62da commit a36be3e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pydra/engine/helpers_file.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,7 @@ def template_update_single(
163163
f"type of '{field.name}' is Path, consider using Union[Path, bool]"
164164
)
165165
if inp_val_set is not attr.NOTHING and not isinstance(inp_val_set, LazyField):
166-
inp_val_set = TypeParser(ty.Union.__getitem__(OUTPUT_TEMPLATE_TYPES))(
167-
inp_val_set
168-
)
166+
inp_val_set = TypeParser(ty.Union[OUTPUT_TEMPLATE_TYPES])(inp_val_set)
169167
elif spec_type == "output":
170168
if not TypeParser.contains_type(FileSet, field.type):
171169
raise TypeError(

0 commit comments

Comments
 (0)