diff --git a/pydra/utils/typing.py b/pydra/utils/typing.py index d0ae8fbaba..ee8e733e44 100644 --- a/pydra/utils/typing.py +++ b/pydra/utils/typing.py @@ -449,6 +449,10 @@ def check_tuple(tp_args, pattern_args): for arg in tp_args: expand_and_check(arg, pattern_args[0]) return + elif tp_args[-1] is Ellipsis: + for pattern_arg in pattern_args: + expand_and_check(tp_args[0], pattern_arg) + return if len(tp_args) != len(pattern_args): raise TypeError( f"Wrong number of type arguments in tuple {tp_args} compared to pattern "