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: ...