From 8d56900ff4a7f0e38bd0fd617d2823cd02bf8f88 Mon Sep 17 00:00:00 2001 From: Tom Close Date: Wed, 6 Sep 2023 16:50:17 +1000 Subject: [PATCH] fixed up subclass checking of unions --- pydra/utils/typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydra/utils/typing.py b/pydra/utils/typing.py index ceddc7e219..21718d3c29 100644 --- a/pydra/utils/typing.py +++ b/pydra/utils/typing.py @@ -649,7 +649,7 @@ def is_subclass( else: candidate_args = [candidate] return all( - any(cls.is_subclass(a, c) for a in args) for c in candidate_args + any(cls.is_subclass(a, c) for c in candidate_args) for a in args ) if origin is not None: klass = origin