From: Bob Halley Date: Sun, 30 Mar 2025 19:35:05 +0000 (-0700) Subject: fix type error in _http3 verify parameter X-Git-Tag: v2.8.0rc1~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=249bf9919fc2d6e540348801b815b24b49bfa746;p=thirdparty%2Fdnspython.git fix type error in _http3 verify parameter --- 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: