]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
latest ty lint
authorBob Halley <halley@dnspython.org>
Sun, 15 Mar 2026 22:55:19 +0000 (15:55 -0700)
committerBob Halley <halley@dnspython.org>
Sun, 15 Mar 2026 22:55:19 +0000 (15:55 -0700)
dns/asyncquery.py
dns/query.py

index ffe768844413c4ecab6b4f60df50eef781c379ec..986a37a5c95c424037ae82419230950a3c1d693d 100644 (file)
@@ -734,10 +734,10 @@ async def _http3(
     wire = q.to_wire()
     the_connection: dns.quic.AsyncQuicConnection
     if connection:
-        cfactory = dns.quic.null_factory  # type: ignore
-        mfactory = dns.quic.null_factory  # type: ignore
+        cfactory = dns.quic.null_factory
+        mfactory = dns.quic.null_factory
     else:
-        cfactory, mfactory = dns.quic.factories_for_backend(backend)  # type: ignore
+        cfactory, mfactory = dns.quic.factories_for_backend(backend)
 
     async with cfactory() as context:
         async with mfactory(
@@ -805,11 +805,11 @@ async def quic(
     wire = q.to_wire()
     the_connection: dns.quic.AsyncQuicConnection
     if connection:
-        cfactory = dns.quic.null_factory  # type: ignore
-        mfactory = dns.quic.null_factory  # type: ignore
+        cfactory = dns.quic.null_factory
+        mfactory = dns.quic.null_factory
         the_connection = connection
     else:
-        cfactory, mfactory = dns.quic.factories_for_backend(backend)  # type: ignore
+        cfactory, mfactory = dns.quic.factories_for_backend(backend)
 
     async with cfactory() as context:
         async with mfactory(
index f32ec45aca0d95cc58d6f04a5cee0b5f92eca904..32476a6f6e27d87853238981368c0691e92ed654 100644 (file)
@@ -696,11 +696,11 @@ def _http3(
     q.id = 0
     wire = q.to_wire()
     the_connection: dns.quic.SyncQuicConnection
-    the_manager: dns.quic.SyncQuicManager  # type: ignore
+    the_manager: dns.quic.SyncQuicManager
     if connection:
         manager: contextlib.AbstractContextManager = contextlib.nullcontext(None)
     else:
-        manager = dns.quic.SyncQuicManager(  # type: ignore
+        manager = dns.quic.SyncQuicManager(
             verify_mode=verify, server_name=hostname, h3=True  # pyright: ignore
         )
         the_manager = manager  # for type checking happiness
@@ -1491,12 +1491,12 @@ def quic(
     q.id = 0
     wire = q.to_wire()
     the_connection: dns.quic.SyncQuicConnection
-    the_manager: dns.quic.SyncQuicManager  # type: ignore
+    the_manager: dns.quic.SyncQuicManager
     if connection:
         manager: contextlib.AbstractContextManager = contextlib.nullcontext(None)
         the_connection = connection
     else:
-        manager = dns.quic.SyncQuicManager(  # type: ignore
+        manager = dns.quic.SyncQuicManager(
             verify_mode=verify, server_name=hostname  # pyright: ignore
         )
         the_manager = manager  # for type checking happiness