From 249bf9919fc2d6e540348801b815b24b49bfa746 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Sun, 30 Mar 2025 12:35:05 -0700 Subject: [PATCH] fix type error in _http3 verify parameter --- dns/asyncquery.py | 2 +- dns/query.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dns/asyncquery.py b/dns/asyncquery.py index 3aae0027..1e31b2e3 100644 --- a/dns/asyncquery.py +++ b/dns/asyncquery.py @@ -713,7 +713,7 @@ async def _http3( source_port: int = 0, one_rr_per_rrset: bool = False, ignore_trailing: bool = False, - verify: Union[bool, str] = True, + verify: Union[bool, str, ssl.SSLContext] = True, backend: Optional[dns.asyncbackend.Backend] = None, post: bool = True, connection: Optional[dns.quic.AsyncQuicConnection] = None, diff --git a/dns/query.py b/dns/query.py index 63733e56..00255768 100644 --- a/dns/query.py +++ b/dns/query.py @@ -632,7 +632,7 @@ def _http3( source_port: int = 0, one_rr_per_rrset: bool = False, ignore_trailing: bool = False, - verify: Union[bool, str] = True, + verify: Union[bool, str, ssl.SSLContext] = True, post: bool = True, connection: Optional[dns.quic.SyncQuicConnection] = None, ) -> dns.message.Message: -- 2.47.3