mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-14 11:44:45 +08:00
20 lines
856 B
Python
20 lines
856 B
Python
|
from typing import Dict, Tuple, Any, Optional, BinaryIO
|
||
|
from .name import Name, IDNACodec
|
||
|
class Rdata:
|
||
|
def __init__(self):
|
||
|
self.address : str
|
||
|
def to_wire(self, file : Optional[BinaryIO], compress : Optional[Dict[Name,int]], origin : Optional[Name], canonicalize : Optional[bool]) -> Optional[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, relativize_to : Optional[Name] = None,
|
||
|
idna_codec : Optional[IDNACodec] = None):
|
||
|
...
|
||
|
|
||
|
def from_wire(rdclass : int, rdtype : int, wire : bytes, current : int, rdlen : int, origin : Optional[Name] = None):
|
||
|
...
|