mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
ssl.SSLContext(protocol) >= 3.5 has a default value (#2007)
Fix #1947 As discussed, pretended all 3.5.* have the default value although it was actually 3.5.3 which introduced it
This commit is contained in:
committed by
Jelle Zijlstra
parent
81a6ea43a5
commit
fe1d7f4fd4
@@ -207,7 +207,10 @@ class SSLContext:
|
||||
if sys.version_info >= (3, 4):
|
||||
verify_flags = ... # type: int
|
||||
verify_mode = ... # type: int
|
||||
def __init__(self, protocol: int) -> None: ...
|
||||
if sys.version_info >= (3, 5):
|
||||
def __init__(self, protocol: int = ...) -> None: ...
|
||||
else:
|
||||
def __init__(self, protocol: int) -> None: ...
|
||||
if sys.version_info >= (3, 4):
|
||||
def cert_store_stats(self) -> Dict[str, int]: ...
|
||||
def load_cert_chain(self, certfile: str, keyfile: Optional[str] = ...,
|
||||
|
||||
Reference in New Issue
Block a user