From bec2e773408f0dbfbf22130b3b548d5072313048 Mon Sep 17 00:00:00 2001 From: up-n-atom Date: Tue, 12 Sep 2023 16:18:35 -0400 Subject: [PATCH] Fix Any type --- xmo-remote-client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xmo-remote-client.py b/xmo-remote-client.py index 89c460b..8ea3e06 100755 --- a/xmo-remote-client.py +++ b/xmo-remote-client.py @@ -6,6 +6,7 @@ from ipaddress import IPv4Address import json from sagemcom_api.client import SagemcomClient from sagemcom_api.enums import EncryptionMethod +from typing import Any class EnumChoice(click.Choice): @@ -84,7 +85,7 @@ async def get_dns(ctx: click.Context) -> None: await ctx.invoke(get_value, path='Device/DNS') -def validate_dns_servers(ctx: click.Context, param: str, value: any) -> tuple[IPv4Address]: +def validate_dns_servers(ctx: click.Context, param: str, value: Any) -> tuple[IPv4Address]: if isinstance(value, tuple): return value dns_servers = set()