Skip to content

Commit a8620b9

Browse files
authored
Merge pull request #8 from uw4/patch-1
Backport: fix varargs (i.e. <n+:n>) signature validation
2 parents 63060af + 253b96a commit a8620b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/jsonata/signature.py

+1
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ def validate(self, args: Any, context: Optional[Any]) -> Optional[Any]:
307307
validated_args.append(arg)
308308
arg_index += 1
309309
else:
310+
arg = args[arg_index] if arg_index < len(args) else None
310311
validated_args.append(arg)
311312
arg_index += 1
312313
return validated_args

0 commit comments

Comments
 (0)