Skip to content

Commit

Permalink
Helps if your default is also a string... one might think click would…
Browse files Browse the repository at this point in the history
… coerce the default into the defined type and one might be wrong.
  • Loading branch information
cadeef committed Oct 27, 2020
1 parent f625290 commit 0d07252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cade_task/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def list_resolve() -> str:
lists = get_lists()
display_table(lists, ["List"], number_lines=True)
display_title("Unknown list, select one.")
n = click.prompt("List ID?", default=0, type=int)
n = click.prompt("List ID?", default=0, type=int) # type: ignore[arg-type]

try:
project = lists[n]
Expand Down

0 comments on commit 0d07252

Please sign in to comment.