Skip to content

Commit

Permalink
Fixing the tuple array parsing. Now type=eval is included
Browse files Browse the repository at this point in the history
  • Loading branch information
uchami-lg committed Apr 9, 2024
1 parent 05274f3 commit aa2bd28
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions moonworm/generators/brownie.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,13 @@ def generate_cli_generator(
value=cst.parse_expression("eval"),
),
)
elif param["type"] == "tuple[]":
call_args.append(
cst.Arg(
keyword=cst.Name(value="type"),
value=cst.parse_expression("eval"),
),
)
elif param["type"] == "Any":
# In general case, we just use a Python `eval` to parse the input from the command line.
# This is similar to the way we handle `tuple` arguments.
Expand Down

0 comments on commit aa2bd28

Please sign in to comment.