Skip to content

Commit

Permalink
hotfix listarg
Browse files Browse the repository at this point in the history
  • Loading branch information
pcarrott committed Oct 4, 2024
1 parent 441b1e6 commit aee61b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coqpyt/coq/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def handle_arg_type(args, ids):
return ids[0][1][1]
elif args[1] == "ident":
return ids[1]
elif args[0] == "ListArg":
elif args[0] == "ListArg" and len(ids) > 0:
# FIXME: This recursive case works when the list is of length 1,
# but it should be generalized to handle any length.
return handle_arg_type(args[1], ids[0])
Expand Down

0 comments on commit aee61b7

Please sign in to comment.