Future[Line], not Awaitable[Line] in self._wait_for

This commit is contained in:
jesopo 2020-04-13 17:32:39 +01:00
parent cb3439e674
commit bd424d11ff

View file

@ -33,7 +33,7 @@ class Server(IServer):
self.sasl_state = SASLResult.NONE self.sasl_state = SASLResult.NONE
self._wait_for: List[Tuple[Awaitable[Line], IMatchResponse]] = [] self._wait_for: List[Tuple["Future[Line]", IMatchResponse]] = []
self._write_queue: PriorityQueue[SentLine] = PriorityQueue() self._write_queue: PriorityQueue[SentLine] = PriorityQueue()
self.desired_caps: Set[ICapability] = set([]) self.desired_caps: Set[ICapability] = set([])