]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
add return type to get_soa()
authorBob Halley <halley@dnspython.org>
Sat, 5 Mar 2022 20:54:52 +0000 (12:54 -0800)
committerBob Halley <halley@dnspython.org>
Sat, 5 Mar 2022 20:54:52 +0000 (12:54 -0800)
dns/zone.py

index a9a400775c1e029749497031ab39ae5db4f6a074..7ab9e9dee8eb13b88b3cacd9142940a1714a5140 100644 (file)
@@ -706,12 +706,12 @@ class Zone(dns.transaction.TransactionManager):
         if self.get_rdataset(name, dns.rdatatype.NS) is None:
             raise NoNS
 
-    def get_soa(self, txn: Optional[dns.transaction.Transaction]=None):
-        """Get the zone SOA RR.
+    def get_soa(self, txn: Optional[dns.transaction.Transaction]=None) -> dns.rdtypes.ANY.SOA.SOA:
+        """Get the zone SOA rdata.
 
         Raises ``dns.zone.NoSOA`` if there is no SOA RRset.
 
-        Returns a ``dns.node.Node``.
+        Returns a ``dns.rdtypes.ANY.SOA.SOA`` Rdata.
         """
         if self.relativize:
             origin_name = dns.name.empty