From 8d39694f219357192e4b4d44d472362f1031a7fd Mon Sep 17 00:00:00 2001 From: Anton Khodak Date: Sat, 3 Feb 2018 19:10:11 +0200 Subject: [PATCH] Fix Any type compatibility for arrays --- cwltool/workflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cwltool/workflow.py b/cwltool/workflow.py index e6d650910..9baa4f0b8 100644 --- a/cwltool/workflow.py +++ b/cwltool/workflow.py @@ -145,7 +145,7 @@ def can_assign_src_to_sink(src, sink, strict=False): # type: (Any, Any, bool) - In strict comparison, all source types must match at least one sink type. """ - if sink == "Any": + if src == "Any" or sink == "Any": return True if isinstance(src, dict) and isinstance(sink, dict): if src["type"] == "array" and sink["type"] == "array":