Skip to content

Commit 3db6001

Browse files
committed
fixes bug in union type checking
1 parent 052b0bb commit 3db6001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydra/utils/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ def check_union(tp, pattern_args):
527527
except TypeError as e:
528528
reasons.append(e)
529529
else:
530-
reasons = None
530+
reasons = []
531531
break
532532
if self.match_any_of_union and len(reasons) < len(tp_args):
533533
# Just need one of the union args to match

0 commit comments

Comments
 (0)