Add type hints for _create_default_https_context and _create_unverified_context. (#583)

This commit is contained in:
paavoap
2016-10-10 10:56:01 +08:00
committed by Guido van Rossum
parent 92b600540e
commit cac07d6dea

View File

@@ -46,6 +46,17 @@ if sys.version_info >= (3, 4):
capath: Optional[str] = ...,
cadata: Optional[str] = ...) -> 'SSLContext': ...
if sys.version_info >= (3, 4, 3):
def _create_unverified_context(protocol: int = ..., *,
cert_reqs: int = ...,
check_hostname: bool = ...,
purpose: Any = ...,
certfile: Optional[str] = ...,
keyfile: Optional[str] = ...,
cafile: Optional[str] = ...,
capath: Optional[str] = ...,
cadata: Optional[str] = ...) -> 'SSLContext': ...
_create_default_https_context = ... # type: Callable[..., 'SSLContext']
def RAND_bytes(num: int) -> bytes: ...
def RAND_pseudo_bytes(num: int) -> Tuple[bytes, bool]: ...