summaryrefslogtreecommitdiff
path: root/kvmd/htclient.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-09-04 18:08:40 +0300
committerMaxim Devaev <[email protected]>2022-09-04 18:08:40 +0300
commitee3e224e396494cd0d69bb6167087a071a20349c (patch)
tree5becd28570e58a03c6e1e231d0db24c264a73f88 /kvmd/htclient.py
parent4b75221e9470b4a009955d7677f16adf8e23e302 (diff)
new typing style
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,