Skip to content

Commit d109e53

Browse files
committed
reverted typing args with tuple ellipsis
1 parent 9fabcb3 commit d109e53

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pydra/utils/typing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,10 +421,10 @@ def check_tuple(tp_args, pattern_args):
421421
for arg in tp_args:
422422
expand_and_check(arg, pattern_args[0])
423423
return
424-
elif tp_args[-1] is Ellipsis:
425-
for pattern_arg in pattern_args:
426-
expand_and_check(tp_args[0], pattern_arg)
427-
return
424+
# elif tp_args[-1] is Ellipsis:
425+
# for pattern_arg in pattern_args:
426+
# expand_and_check(tp_args[0], pattern_arg)
427+
# return
428428
if len(tp_args) != len(pattern_args):
429429
raise TypeError(
430430
f"Wrong number of type arguments in tuple {tp_args} compared to pattern "

0 commit comments

Comments
 (0)