From: Bob Halley Date: Thu, 28 Dec 2023 19:19:37 +0000 (-0800) Subject: formatting lint X-Git-Tag: v2.5.0rc1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9787409b3596a358e5fbdfd4866aee5bad5fe4a;p=thirdparty%2Fdnspython.git formatting lint --- diff --git a/dns/quic/__init__.py b/dns/quic/__init__.py index 69813f9f..d9eee7b5 100644 --- a/dns/quic/__init__.py +++ b/dns/quic/__init__.py @@ -17,7 +17,7 @@ try: def null_factory( *args, # pylint: disable=unused-argument - **kwargs # pylint: disable=unused-argument + **kwargs, # pylint: disable=unused-argument ): return NullContext(None) diff --git a/dns/rdata.py b/dns/rdata.py index 5482e71d..7ed07dcb 100644 --- a/dns/rdata.py +++ b/dns/rdata.py @@ -199,7 +199,7 @@ class Rdata: self, origin: Optional[dns.name.Name] = None, relativize: bool = True, - **kw: Dict[str, Any] + **kw: Dict[str, Any], ) -> str: """Convert an rdata to text format. @@ -617,7 +617,7 @@ class GenericRdata(Rdata): self, origin: Optional[dns.name.Name] = None, relativize: bool = True, - **kw: Dict[str, Any] + **kw: Dict[str, Any], ) -> str: return r"\# %d " % len(self.data) + _hexify(self.data, **kw) diff --git a/dns/rdtypes/txtbase.py b/dns/rdtypes/txtbase.py index cdfcc31c..d1817645 100644 --- a/dns/rdtypes/txtbase.py +++ b/dns/rdtypes/txtbase.py @@ -56,7 +56,7 @@ class TXTBase(dns.rdata.Rdata): self, origin: Optional[dns.name.Name] = None, relativize: bool = True, - **kw: Dict[str, Any] + **kw: Dict[str, Any], ) -> str: txt = "" prefix = "" diff --git a/dns/rrset.py b/dns/rrset.py index 350de13e..29e5ba0d 100644 --- a/dns/rrset.py +++ b/dns/rrset.py @@ -132,7 +132,7 @@ class RRset(dns.rdataset.Rdataset): self, origin: Optional[dns.name.Name] = None, relativize: bool = True, - **kw: Dict[str, Any] + **kw: Dict[str, Any], ) -> str: """Convert the RRset into DNS zone file format. @@ -159,7 +159,7 @@ class RRset(dns.rdataset.Rdataset): file: Any, compress: Optional[dns.name.CompressType] = None, # type: ignore origin: Optional[dns.name.Name] = None, - **kw: Dict[str, Any] + **kw: Dict[str, Any], ) -> int: """Convert the RRset to wire format. @@ -231,7 +231,7 @@ def from_text( ttl: int, rdclass: Union[dns.rdataclass.RdataClass, str], rdtype: Union[dns.rdatatype.RdataType, str], - *text_rdatas: Any + *text_rdatas: Any, ) -> RRset: """Create an RRset with the specified name, TTL, class, and type and with the specified rdatas in text format.