From: Bob Halley Date: Fri, 1 May 2020 20:06:19 +0000 (-0700) Subject: add missing type declarations X-Git-Tag: v2.0.0rc1~283 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03f5906b4754fe0bab7af72b2ce5b713f7fd06e4;p=thirdparty%2Fdnspython.git add missing type declarations --- diff --git a/dns/name.pyi b/dns/name.pyi index 5a8061b2..2fc37ad0 100644 --- a/dns/name.pyi +++ b/dns/name.pyi @@ -1,5 +1,7 @@ from typing import Optional, Union, Tuple, Iterable, List +have_idna_2008: bool + class Name: def is_subdomain(self, o : Name) -> bool: ... def is_superdomain(self, o : Name) -> bool: ... diff --git a/dns/query.pyi b/dns/query.pyi index 37bdd46a..2ca3a15f 100644 --- a/dns/query.pyi +++ b/dns/query.pyi @@ -13,6 +13,8 @@ except ImportError: class ssl(object): # type: ignore SSLContext : Dict = {} +have_doh: bool + def https(q : message.Message, where: str, timeout : Optional[float] = None, port : Optional[int] = 443, af : Optional[int] = None, source : Optional[str] = None, source_port : Optional[int] = 0, session: Optional[Session] = None, path : Optional[str] = '/dns-query', post : Optional[bool] = True, bootstrap_address : Optional[str] = None, verify : Optional[bool] = True) -> message.Message: pass