]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
typehint constructor for TXTBase
authorMathias Ertl <mati@er.tl>
Sat, 29 Jan 2022 21:02:58 +0000 (22:02 +0100)
committerBob Halley <halley@play-bow.org>
Sat, 29 Jan 2022 23:27:28 +0000 (15:27 -0800)
(cherry picked from commit 450676b86f1123d988cfac0016e40f65ccd66faa)

dns/rdtypes/txtbase.pyi

index af447d500b74cb5589c93b4b33aec91265b548d6..f8d5df987390f7c1ef29ca38b7ed33fcb80fbce6 100644 (file)
@@ -1,6 +1,12 @@
+import typing
 from .. import rdata
 
 class TXTBase(rdata.Rdata):
-    ...
+    strings: typing.Tuple[bytes, ...]
+
+    def __init__(self, rdclass: int, rdtype: int, strings: typing.Iterable[bytes]) -> None:
+        ...
+    def to_text(self, origin: typing.Any, relativize: bool, **kw: typing.Any) -> str:
+        ...
 class TXT(TXTBase):
     ...