Fix __list_voices type hint issue (#414)
Signed-off-by: rany <rany2@riseup.net>
This commit is contained in:
@@ -3,7 +3,7 @@ correct voice based on their attributes."""
|
|||||||
|
|
||||||
import json
|
import json
|
||||||
import ssl
|
import ssl
|
||||||
from typing import List, Optional
|
from typing import Any, List, Optional
|
||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import certifi
|
import certifi
|
||||||
@@ -38,7 +38,7 @@ async def __list_voices(
|
|||||||
ssl=ssl_ctx,
|
ssl=ssl_ctx,
|
||||||
raise_for_status=True,
|
raise_for_status=True,
|
||||||
) as url:
|
) as url:
|
||||||
data: List[Voice] = json.loads(await url.text())
|
data: List[Any] = json.loads(await url.text())
|
||||||
|
|
||||||
for voice in data:
|
for voice in data:
|
||||||
if "VoiceTag" not in voice:
|
if "VoiceTag" not in voice:
|
||||||
|
|||||||
Reference in New Issue
Block a user