From: Bob Halley Date: Fri, 18 Oct 2024 20:11:16 +0000 (-0700) Subject: pyright cannot figure out trio CancelScope X-Git-Tag: v2.8.0rc1~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7d7fd05d1a712849f272c935147373e27755d20;p=thirdparty%2Fdnspython.git pyright cannot figure out trio CancelScope --- 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())