]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
add IDNA codec parameter to dns.rdata.from_text() type signature.
authorBob Halley <halley@dnspython.org>
Sun, 3 May 2020 14:26:35 +0000 (07:26 -0700)
committerBob Halley <halley@dnspython.org>
Sun, 3 May 2020 14:26:35 +0000 (07:26 -0700)
dns/rdata.pyi

index 05a38123dd5af60961b00666d8ea6707fa905f9e..f5d4abbf9ff597bf28c0bf1dbf41c4a78fb640c5 100644 (file)
@@ -1,5 +1,5 @@
 from typing import Dict, Tuple, Any, Optional
-from .name import Name
+from .name import Name, IDNACodec
 class Rdata:
     def __init__(self):
         self.address : str
@@ -10,7 +10,9 @@ class Rdata:
         ...
 _rdata_modules : Dict[Tuple[Any,Rdata],Any]
 
-def from_text(rdclass : int, rdtype : int, tok : Optional[str], origin : Optional[Name] = None, relativize : bool = True, relativize_to : Optional[Name] = None):
+def from_text(rdclass : int, rdtype : int, tok : Optional[str], origin : Optional[Name] = None,
+              relativize : bool = True, relativize_to : Optional[Name] = None,
+              idna_codec : Optional[IDNACodec]):
     ...
 
 def from_wire(rdclass : int, rdtype : int, wire : bytes, current : int, rdlen : int, origin : Optional[Name] = None):