summaryrefslogtreecommitdiff
path: root/kvmd/htclient.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/htclient.py')
-rw-r--r--kvmd/htclient.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/kvmd/htclient.py b/kvmd/htclient.py
index e2ae0de4..d8592175 100644
--- a/kvmd/htclient.py
+++ b/kvmd/htclient.py
@@ -23,9 +23,7 @@
import os
import contextlib
-from typing import Dict
from typing import AsyncGenerator
-from typing import Optional
import aiohttp
import aiohttp.multipart
@@ -68,11 +66,11 @@ async def download(
url: str,
verify: bool=True,
timeout: float=10.0,
- read_timeout: Optional[float]=None,
+ read_timeout: (float | None)=None,
app: str="KVMD",
) -> AsyncGenerator[aiohttp.ClientResponse, None]:
- kwargs: Dict = {
+ kwargs: dict = {
"headers": {"User-Agent": make_user_agent(app)},
"timeout": aiohttp.ClientTimeout(
connect=timeout,