From: Bob Halley Date: Sun, 15 Mar 2026 22:55:19 +0000 (-0700) Subject: latest ty lint X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04ef19a280101f7c815162ee121e4bcd03d02012;p=thirdparty%2Fdnspython.git latest ty lint --- diff --git a/dns/asyncquery.py b/dns/asyncquery.py index ffe76884..986a37a5 100644 --- a/dns/asyncquery.py +++ b/dns/asyncquery.py @@ -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( diff --git a/dns/query.py b/dns/query.py index f32ec45a..32476a6f 100644 --- a/dns/query.py +++ b/dns/query.py @@ -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