We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6e62da commit a36be3eCopy full SHA for a36be3e
pydra/engine/helpers_file.py
@@ -163,9 +163,7 @@ def template_update_single(
163
f"type of '{field.name}' is Path, consider using Union[Path, bool]"
164
)
165
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
- )
+ inp_val_set = TypeParser(ty.Union[OUTPUT_TEMPLATE_TYPES])(inp_val_set)
169
elif spec_type == "output":
170
if not TypeParser.contains_type(FileSet, field.type):
171
raise TypeError(
0 commit comments