From: Bob Halley Date: Thu, 10 Mar 2022 20:56:54 +0000 (-0800) Subject: add missing request_mac annotation to async methods X-Git-Tag: v2.3.0rc1~99^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=478f313813049bcd2d7cc0a2164fbf6cf04ae94b;p=thirdparty%2Fdnspython.git add missing request_mac annotation to async methods --- diff --git a/dns/asyncquery.py b/dns/asyncquery.py index c785764d..6c441c07 100644 --- a/dns/asyncquery.py +++ b/dns/asyncquery.py @@ -98,7 +98,7 @@ async def send_udp(sock: dns.asyncbackend.DatagramSocket, async def receive_udp(sock: dns.asyncbackend.DatagramSocket, destination: Optional[Any]=None, expiration: Optional[float]=None, ignore_unexpected: bool=False, one_rr_per_rrset: bool=False, - keyring: Optional[Dict[dns.name.Name, dns.tsig.Key]]=None, request_mac=b'', + keyring: Optional[Dict[dns.name.Name, dns.tsig.Key]]=None, request_mac: Optional[bytes]=b'', ignore_trailing: bool=False, raise_on_truncation: bool=False) -> Any: """Read a DNS message from a UDP socket. @@ -254,7 +254,8 @@ async def _read_exactly(sock, count, expiration): async def receive_tcp(sock: dns.asyncbackend.StreamSocket, expiration: Optional[float]=None, one_rr_per_rrset: bool=False, keyring: Optional[Dict[dns.name.Name, dns.tsig.Key]]=None, - request_mac=b'', ignore_trailing: bool=False) -> Tuple[dns.message.Message, float]: + request_mac: Optional[bytes]=b'', + ignore_trailing: bool=False) -> Tuple[dns.message.Message, float]: """Read a DNS message from a TCP socket. *sock*, a ``dns.asyncbackend.StreamSocket``.