Skip to content

Commit 4482257

Browse files
authored
Merge pull request #641 from common-workflow-language/fix/any-compatibility
Fix Any type compatibility in outputSource for workflows
2 parents 9134ec8 + 1279f14 commit 4482257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwltool/workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def can_assign_src_to_sink(src, sink, strict=False): # type: (Any, Any, bool) -
145145
In strict comparison, all source types must match at least one sink type.
146146
"""
147147

148-
if sink == "Any":
148+
if src == "Any" or sink == "Any":
149149
return True
150150
if isinstance(src, dict) and isinstance(sink, dict):
151151
if src["type"] == "array" and sink["type"] == "array":

0 commit comments

Comments
 (0)