diff options
author | Janus <ysangkok@gmail.com> | 2018-07-23 16:11:00 +0200 |
---|---|---|
committer | Janus <ysangkok@gmail.com> | 2018-07-31 20:10:52 +0200 |
commit | 5c5de7bb1ad26d6d6bb82ed2deb64748b46ac599 (patch) | |
tree | e4510f90a598e484e57314dc04217259ef34a690 /dns/rdata.pyi | |
parent | 2e6e81852b63eb64b68a08a27cc6e440819b6b58 (diff) | |
download | dnspython-5c5de7bb1ad26d6d6bb82ed2deb64748b46ac599.tar.gz |
Initial type signatures
Diffstat (limited to 'dns/rdata.pyi')
-rw-r--r-- | dns/rdata.pyi | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/dns/rdata.pyi b/dns/rdata.pyi new file mode 100644 index 0000000..8663955 --- /dev/null +++ b/dns/rdata.pyi @@ -0,0 +1,17 @@ +from typing import Dict, Tuple, Any, Optional +from .name import Name +class Rdata: + def __init__(self): + self.address : str + def to_wire(self, file, compress : Optional[Dict[Name,int]], origin : Optional[Name]) -> bytes: + ... + @classmethod + def from_text(cls, rdclass : int, rdtype : int, tok, origin=None, relativize=True): + ... +_rdata_modules : Dict[Tuple[Any,Rdata],Any] + +def from_text(rdclass : int, rdtype : int, tok : Optional[str], origin : Optional[Name] = None, relativize : bool = True): + ... + +def from_wire(rdclass : int, rdtype : int, wire : bytes, current : int, rdlen : int, origin : Optional[Name] = None): + ... |