Skip to content

Commit

Permalink
Merge pull request #8 from uw4/patch-1
Browse files Browse the repository at this point in the history
Backport: fix varargs (i.e. <n+:n>) signature validation
  • Loading branch information
rayokota authored Sep 18, 2024
2 parents 63060af + 253b96a commit a8620b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jsonata/signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ def validate(self, args: Any, context: Optional[Any]) -> Optional[Any]:
validated_args.append(arg)
arg_index += 1
else:
arg = args[arg_index] if arg_index < len(args) else None
validated_args.append(arg)
arg_index += 1
return validated_args
Expand Down

0 comments on commit a8620b9

Please sign in to comment.