From ebba92c9860ccac9818b6200659bfd8c3812095b Mon Sep 17 00:00:00 2001 From: Seth Michael Larson Date: Sun, 22 Jan 2023 13:28:44 -0500 Subject: [PATCH] Add SSLContext.security_level property for Python 3.10 (#9577) --- stdlib/ssl.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdlib/ssl.pyi b/stdlib/ssl.pyi index a80980016..6fd967ae5 100644 --- a/stdlib/ssl.pyi +++ b/stdlib/ssl.pyi @@ -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(