some more mypy fixes

This commit is contained in:
dni
2022-07-25 12:02:59 +02:00
parent 895770e26a
commit 808bd36e23
9 changed files with 25 additions and 16 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
import asyncio
from typing import Callable, NamedTuple
from typing import Callable, NamedTuple, List
import httpx
from loguru import logger
@@ -227,10 +227,10 @@ async def btc_price(currency: str) -> float:
"TO": currency.upper(),
"to": currency.lower(),
}
rates = []
tasks = []
rates: List[float] = []
tasks: List[asyncio.Task] = []
send_channel = asyncio.Queue()
send_channel: asyncio.Queue = asyncio.Queue()
async def controller():
failures = 0