ssl.pyi: fix types of cadata argument (#3063)

This commit is contained in:
Alexander Fasching
2019-06-16 23:11:10 +02:00
committed by Jelle Zijlstra
parent 1efebf78e4
commit 6258e7ddfd

View File

@@ -51,7 +51,7 @@ if sys.version_info < (3,) or sys.version_info >= (3, 4):
def create_default_context(purpose: Any = ..., *,
cafile: Optional[str] = ...,
capath: Optional[str] = ...,
cadata: Optional[str] = ...) -> SSLContext: ...
cadata: Union[str, bytes, None] = ...) -> SSLContext: ...
if sys.version_info >= (3, 4):
def _create_unverified_context(protocol: int = ..., *,
@@ -62,7 +62,7 @@ if sys.version_info >= (3, 4):
keyfile: Optional[str] = ...,
cafile: Optional[str] = ...,
capath: Optional[str] = ...,
cadata: Optional[str] = ...) -> SSLContext: ...
cadata: Union[str, bytes, None] = ...) -> SSLContext: ...
_create_default_https_context: Callable[..., SSLContext]
if sys.version_info >= (3, 3):