From a446a6ad5dacb519dee18051135920c09122f70f Mon Sep 17 00:00:00 2001 From: sobolevn Date: Wed, 21 May 2025 12:11:08 +0300 Subject: [PATCH] Update `_curses` module for 3.14 --- stdlib/@tests/stubtest_allowlists/darwin-py314.txt | 1 - stdlib/@tests/stubtest_allowlists/linux-py314.txt | 1 - stdlib/_curses.pyi | 3 +++ 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py314.txt b/stdlib/@tests/stubtest_allowlists/darwin-py314.txt index 128e49ac2604..b85b3e57fda8 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py314.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py314.txt @@ -2,7 +2,6 @@ # TODO: New errors in Python 3.14 that need to be fixed or moved below # ==================================================================== -_curses.assume_default_colors _posixsubprocess.fork_exec asyncio.tools asyncio.unix_events.__all__ diff --git a/stdlib/@tests/stubtest_allowlists/linux-py314.txt b/stdlib/@tests/stubtest_allowlists/linux-py314.txt index 8611de3f9b29..eae610f13f99 100644 --- a/stdlib/@tests/stubtest_allowlists/linux-py314.txt +++ b/stdlib/@tests/stubtest_allowlists/linux-py314.txt @@ -2,7 +2,6 @@ # TODO: New errors in Python 3.14 that need to be fixed or moved below # ==================================================================== -_curses.assume_default_colors _posixsubprocess.fork_exec asyncio.tools asyncio.unix_events.__all__ diff --git a/stdlib/_curses.pyi b/stdlib/_curses.pyi index d7820c72c090..f21a9ca60270 100644 --- a/stdlib/_curses.pyi +++ b/stdlib/_curses.pyi @@ -304,6 +304,9 @@ def has_colors() -> bool: ... if sys.version_info >= (3, 10): def has_extended_color_support() -> bool: ... +if sys.version_info >= (3, 14): + def assume_default_colors(fg: int, bg: int, /) -> None: ... + def has_ic() -> bool: ... def has_il() -> bool: ... def has_key(key: int, /) -> bool: ...