]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
add missing type declarations
authorBob Halley <halley@dnspython.org>
Fri, 1 May 2020 20:06:19 +0000 (13:06 -0700)
committerBob Halley <halley@dnspython.org>
Fri, 1 May 2020 20:06:19 +0000 (13:06 -0700)
dns/name.pyi
dns/query.pyi

index 5a8061b21dbfd27eeabc6c9d21c6d5be34e53c10..2fc37ad04ea7cc6870240cc4c45386713a9a2f2b 100644 (file)
@@ -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: ...
index 37bdd46a3ac13f44fa1a44539c508437b5815d56..2ca3a15f39a505aceddf027ae6643fb81d882d50 100644 (file)
@@ -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