From 8b877a6993cf183f865a2c11c1f89adb6156f5c0 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Tue, 13 May 2025 03:14:35 +0300 Subject: [PATCH] Add `HAS_PHA` to `_ssl` (#14033) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- stdlib/@tests/stubtest_allowlists/py314.txt | 1 - stdlib/_ssl.pyi | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/@tests/stubtest_allowlists/py314.txt b/stdlib/@tests/stubtest_allowlists/py314.txt index ccf1541bf..238ea1e3b 100644 --- a/stdlib/@tests/stubtest_allowlists/py314.txt +++ b/stdlib/@tests/stubtest_allowlists/py314.txt @@ -16,7 +16,6 @@ _heapq.heapreplace_max _imp.pyc_magic_number_token _socket.IP_RECVTTL _socket.if_indextoname -_ssl.HAS_PHA _thread.RLock.locked _thread.set_name ast.Interpolation diff --git a/stdlib/_ssl.pyi b/stdlib/_ssl.pyi index e39ab5eb6..7ab880e4d 100644 --- a/stdlib/_ssl.pyi +++ b/stdlib/_ssl.pyi @@ -283,6 +283,8 @@ HAS_TLSv1: bool HAS_TLSv1_1: bool HAS_TLSv1_2: bool HAS_TLSv1_3: bool +if sys.version_info >= (3, 14): + HAS_PHA: bool # version info OPENSSL_VERSION_NUMBER: int