summaryrefslogtreecommitdiff
path: root/kvmd/aiotools.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-10-13 13:50:01 +0300
committerDevaev Maxim <[email protected]>2020-10-13 13:50:01 +0300
commitc6524fc7ac3a271a91fef994a9a9529940337596 (patch)
tree5cef560dfac73d4143df893e0a5be21e344222a8 /kvmd/aiotools.py
parent51ac65d542e041c4f75f0428fe4e84a10ef1c356 (diff)
typing fixes
Diffstat (limited to 'kvmd/aiotools.py')
-rw-r--r--kvmd/aiotools.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/kvmd/aiotools.py b/kvmd/aiotools.py
index dfd67f44..b5d9e2fd 100644
--- a/kvmd/aiotools.py
+++ b/kvmd/aiotools.py
@@ -21,7 +21,6 @@
import asyncio
-import asyncio.queues
import functools
import types
@@ -92,7 +91,7 @@ async def wait_first(*aws: Awaitable) -> Tuple[Set[asyncio.Future], Set[asyncio.
# =====
class AioNotifier:
def __init__(self) -> None:
- self.__queue: asyncio.queues.Queue = asyncio.Queue()
+ self.__queue: "asyncio.Queue[None]" = asyncio.Queue()
async def notify(self) -> None:
await self.__queue.put(None)