Skip to content

Commit

Permalink
fix: add type hint to bot_path_callback
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson2427 committed Oct 4, 2024
1 parent 8a1adb5 commit a0867f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion silverback/_click_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def get_cluster_client(ctx: click.Context, *args, **kwargs):
return update_wrapper(get_cluster_client, f)


def bot_path_callback(ctx: click.Context, param: click.Parameter, value):
def bot_path_callback(ctx: click.Context, param: click.Parameter, value: str | None):
path = ctx.params.get("path")
if not path:
path = "bot:bot"
Expand Down

0 comments on commit a0867f1

Please sign in to comment.