Bläddra i källkod

fix: future typing

Co-authored-by: Alexander Borzunov <hxrussia@gmail.com>
Denis Mazur 4 år sedan
förälder
incheckning
a0c534f1c9
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      hivemind/p2p/p2p_daemon_bindings/control.py

+ 1 - 1
hivemind/p2p/p2p_daemon_bindings/control.py

@@ -86,7 +86,7 @@ class ControlClient:
 
         self._ensure_conn_lock = asyncio.Lock()
         self.pending_messages: asyncio.Queue[p2pd_pb.Request] = asyncio.Queue()
-        self.pending_calls: Dict[CallID, asyncio.Future] = {}
+        self.pending_calls: Dict[CallID, asyncio.Future[bytes]] = {}
 
     @asynccontextmanager
     async def listen(self) -> AsyncIterator["ControlClient"]: