Skip to content

Commit

Permalink
fixed up subclass checking of unions
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Sep 7, 2023
1 parent da8f331 commit 8d56900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydra/utils/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d56900

Please sign in to comment.