Skip to content

Commit

Permalink
Coerce wishes CLI's --limit arg type (#55)
Browse files Browse the repository at this point in the history
Prevent TypeError: '>=' not supported between instances of 'int' and 'str'
  • Loading branch information
mchubby authored Aug 22, 2022
1 parent c763104 commit fe8137d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genshin/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ async def genshin_notes(client: genshin.Client, uid: typing.Optional[int]) -> No


@cli.command()
@click.option("--limit", help="The maximum amount of wishes to show.", default=None)
@click.option("--limit", help="The maximum amount of wishes to show.", type=int, default=None)
@client_command
async def wishes(client: genshin.Client, limit: typing.Optional[int] = None) -> None:
"""Show a nicely formatted wish history."""
Expand Down

0 comments on commit fe8137d

Please sign in to comment.