mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Add type hints for _create_default_https_context and _create_unverified_context. (#583)
This commit is contained in:
committed by
Guido van Rossum
parent
92b600540e
commit
cac07d6dea
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user