Add SSLContext.security_level property for Python 3.10 (#9577)

This commit is contained in:
Seth Michael Larson
2023-01-22 13:28:44 -05:00
committed by GitHub
parent b11e2e37c6
commit ebba92c986

View File

@@ -378,6 +378,8 @@ class SSLContext:
if sys.version_info >= (3, 8):
keylog_filename: str
post_handshake_auth: bool
if sys.version_info >= (3, 10):
security_level: int
def __new__(cls: type[Self], protocol: int = ..., *args: Any, **kwargs: Any) -> Self: ...
def cert_store_stats(self) -> dict[str, int]: ...
def load_cert_chain(