]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
pyright cannot figure out trio CancelScope
authorBob Halley <halley@dnspython.org>
Fri, 18 Oct 2024 20:11:16 +0000 (13:11 -0700)
committerBob Halley <halley@dnspython.org>
Fri, 18 Oct 2024 20:11:16 +0000 (13:11 -0700)
dns/quic/_trio.py

index 7eead5796deb66bf37dc2fbd3ebc583c58e3fbbe..046e6aab6097d38c4a1472adbe560eb1fb214258 100644 (file)
@@ -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())