Skip to content

Commit 04ef19a

Browse files
committed
latest ty lint
1 parent 8fdd6f7 commit 04ef19a

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

dns/asyncquery.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -734,10 +734,10 @@ async def _http3(
734734
wire = q.to_wire()
735735
the_connection: dns.quic.AsyncQuicConnection
736736
if connection:
737-
cfactory = dns.quic.null_factory # type: ignore
738-
mfactory = dns.quic.null_factory # type: ignore
737+
cfactory = dns.quic.null_factory
738+
mfactory = dns.quic.null_factory
739739
else:
740-
cfactory, mfactory = dns.quic.factories_for_backend(backend) # type: ignore
740+
cfactory, mfactory = dns.quic.factories_for_backend(backend)
741741

742742
async with cfactory() as context:
743743
async with mfactory(
@@ -805,11 +805,11 @@ async def quic(
805805
wire = q.to_wire()
806806
the_connection: dns.quic.AsyncQuicConnection
807807
if connection:
808-
cfactory = dns.quic.null_factory # type: ignore
809-
mfactory = dns.quic.null_factory # type: ignore
808+
cfactory = dns.quic.null_factory
809+
mfactory = dns.quic.null_factory
810810
the_connection = connection
811811
else:
812-
cfactory, mfactory = dns.quic.factories_for_backend(backend) # type: ignore
812+
cfactory, mfactory = dns.quic.factories_for_backend(backend)
813813

814814
async with cfactory() as context:
815815
async with mfactory(

dns/query.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -696,11 +696,11 @@ def _http3(
696696
q.id = 0
697697
wire = q.to_wire()
698698
the_connection: dns.quic.SyncQuicConnection
699-
the_manager: dns.quic.SyncQuicManager # type: ignore
699+
the_manager: dns.quic.SyncQuicManager
700700
if connection:
701701
manager: contextlib.AbstractContextManager = contextlib.nullcontext(None)
702702
else:
703-
manager = dns.quic.SyncQuicManager( # type: ignore
703+
manager = dns.quic.SyncQuicManager(
704704
verify_mode=verify, server_name=hostname, h3=True # pyright: ignore
705705
)
706706
the_manager = manager # for type checking happiness
@@ -1491,12 +1491,12 @@ def quic(
14911491
q.id = 0
14921492
wire = q.to_wire()
14931493
the_connection: dns.quic.SyncQuicConnection
1494-
the_manager: dns.quic.SyncQuicManager # type: ignore
1494+
the_manager: dns.quic.SyncQuicManager
14951495
if connection:
14961496
manager: contextlib.AbstractContextManager = contextlib.nullcontext(None)
14971497
the_connection = connection
14981498
else:
1499-
manager = dns.quic.SyncQuicManager( # type: ignore
1499+
manager = dns.quic.SyncQuicManager(
15001500
verify_mode=verify, server_name=hostname # pyright: ignore
15011501
)
15021502
the_manager = manager # for type checking happiness

0 commit comments

Comments
 (0)