From 3968308e749796c6bfc02be60ace97e8c833aeb8 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Sun, 6 Aug 2023 17:30:55 +0300 Subject: [PATCH] Update `asyncio.constants` module for python3.12 (#10535) --- stdlib/asyncio/constants.pyi | 2 ++ tests/stubtest_allowlists/py312.txt | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/asyncio/constants.pyi b/stdlib/asyncio/constants.pyi index af209fa9e..60d852920 100644 --- a/stdlib/asyncio/constants.pyi +++ b/stdlib/asyncio/constants.pyi @@ -11,6 +11,8 @@ if sys.version_info >= (3, 11): SSL_SHUTDOWN_TIMEOUT: float FLOW_CONTROL_HIGH_WATER_SSL_READ: Literal[256] FLOW_CONTROL_HIGH_WATER_SSL_WRITE: Literal[512] +if sys.version_info >= (3, 12): + THREAD_JOIN_TIMEOUT: Literal[300] class _SendfileMode(enum.Enum): UNSUPPORTED: int diff --git a/tests/stubtest_allowlists/py312.txt b/tests/stubtest_allowlists/py312.txt index 26084d535..a8413aaa1 100644 --- a/tests/stubtest_allowlists/py312.txt +++ b/tests/stubtest_allowlists/py312.txt @@ -5,7 +5,6 @@ asyncio.BaseEventLoop.shutdown_default_executor asyncio.StreamWriter.start_tls asyncio.base_events.BaseEventLoop.create_connection asyncio.base_events.BaseEventLoop.shutdown_default_executor -asyncio.constants.THREAD_JOIN_TIMEOUT asyncio.create_eager_task_factory asyncio.eager_task_factory asyncio.streams.StreamWriter.start_tls