From d78d1faf66daee221315c12d9c2c64b1e01cc4c7 Mon Sep 17 00:00:00 2001 From: rany2 Date: Thu, 28 Aug 2025 19:35:05 +0300 Subject: [PATCH] Fix __list_voices type hint issue (#414) Signed-off-by: rany --- src/edge_tts/voices.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/edge_tts/voices.py b/src/edge_tts/voices.py index f48cd55..55642fb 100644 --- a/src/edge_tts/voices.py +++ b/src/edge_tts/voices.py @@ -3,7 +3,7 @@ correct voice based on their attributes.""" import json import ssl -from typing import List, Optional +from typing import Any, List, Optional import aiohttp import certifi @@ -38,7 +38,7 @@ async def __list_voices( ssl=ssl_ctx, raise_for_status=True, ) as url: - data: List[Voice] = json.loads(await url.text()) + data: List[Any] = json.loads(await url.text()) for voice in data: if "VoiceTag" not in voice: