From: Nick Gaya Date: Thu, 16 Jul 2020 21:13:08 +0000 (-0700) Subject: Define additional return types in name.pyi X-Git-Tag: v2.1.0rc1~179^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=357ed03f119e7ed952fd731168d4969aecf68bf9;p=thirdparty%2Fdnspython.git Define additional return types in name.pyi --- diff --git a/dns/name.pyi b/dns/name.pyi index 446600b0..c48d4bd1 100644 --- a/dns/name.pyi +++ b/dns/name.pyi @@ -11,22 +11,24 @@ class Name: def is_wild(self) -> bool: ... def fullcompare(self, other) -> Tuple[int,int,int]: ... def canonicalize(self) -> Name: ... - def __lt__(self, other : Name): ... - def __le__(self, other : Name): ... - def __ge__(self, other : Name): ... - def __gt__(self, other : Name): ... + def __eq__(self, other) -> bool: ... + def __ne__(self, other) -> bool: ... + def __lt__(self, other : Name) -> bool: ... + def __le__(self, other : Name) -> bool: ... + def __ge__(self, other : Name) -> bool: ... + def __gt__(self, other : Name) -> bool: ... def to_text(self, omit_final_dot=False) -> str: ... def to_unicode(self, omit_final_dot=False, idna_codec=None) -> str: ... def to_digestable(self, origin=None) -> bytes: ... def to_wire(self, file=None, compress=None, origin=None, canonicalize=False) -> Optional[bytes]: ... - def __add__(self, other : Name): ... - def __sub__(self, other : Name): ... + def __add__(self, other : Name) -> Name: ... + def __sub__(self, other : Name) -> Name: ... def split(self, depth) -> List[Tuple[str,str]]: ... def concatenate(self, other : Name) -> Name: ... - def relativize(self, origin): ... - def derelativize(self, origin): ... - def choose_relativity(self, origin : Optional[Name] = None, relativize=True): ... + def relativize(self, origin) -> Name: ... + def derelativize(self, origin) -> Name: ... + def choose_relativity(self, origin : Optional[Name] = None, relativize=True) -> Name: ... def parent(self) -> Name: ... class IDNACodec: