From c7d7fd05d1a712849f272c935147373e27755d20 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Fri, 18 Oct 2024 13:11:16 -0700 Subject: [PATCH] pyright cannot figure out trio CancelScope --- dns/quic/_trio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns/quic/_trio.py b/dns/quic/_trio.py index 7eead579..046e6aab 100644 --- a/dns/quic/_trio.py +++ b/dns/quic/_trio.py @@ -112,7 +112,7 @@ class TrioQuicConnection(AsyncQuicConnection): # race. interval = 0.0 with trio.CancelScope( - deadline=trio.current_time() + interval + deadline=trio.current_time() + interval # pyright: ignore ) as self._worker_scope: datagram = await self._socket.recv(QUIC_MAX_DATAGRAM) self._connection.receive_datagram(datagram, self._peer, time.time()) -- 2.47.3