Skip to content

Commit d63422c

Browse files
committed
fixed overzealous validation of path_template
1 parent 45c0399 commit d63422c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydra/design/shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def _validate_path_template(self, attribute, value):
216216
f"path_template ({value!r}) can only be provided when no default "
217217
f"({self.default!r}) is provided"
218218
)
219-
if value and not is_fileset_or_union(self.type):
219+
if value and not (is_fileset_or_union(self.type) or self.type is ty.Any):
220220
raise ValueError(
221221
f"path_template ({value!r}) can only be provided when type is a FileSet, "
222222
f"or union thereof, not {self.type!r}"

0 commit comments

Comments
 (0)