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(
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(
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
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