Fix missing type hint

This commit is contained in:
up-n-atom
2023-08-17 00:30:27 -04:00
committed by GitHub
parent 14baec2cea
commit 26a68f13a9
+1 -1
View File
@@ -27,7 +27,7 @@ class EnumChoice(click.Choice):
default=EncryptionMethod.SHA512, type=EnumChoice(EncryptionMethod),
help='Authentication method')
@click.pass_context
async def cli(ctx, host: str, username: str, password: str, authentication_method: EncryptionMethod) -> None:
async def cli(ctx: click.Context, host: str, username: str, password: str, authentication_method: EncryptionMethod) -> None:
ctx.obj = client = await ctx.with_async_resource(
SagemcomClient(host, username, password, authentication_method, ssl=True, keep_keys=True)
)