From 756481f21924a50051897aded0af1f9ab3d8b0e0 Mon Sep 17 00:00:00 2001 From: Pavel Karateev Date: Fri, 28 May 2021 18:37:54 +0300 Subject: [PATCH] Add curses.has_extended_color_support() for Python 3.10 --- stdlib/_curses.pyi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stdlib/_curses.pyi b/stdlib/_curses.pyi index db9b049a9392..89a85bbbeb43 100644 --- a/stdlib/_curses.pyi +++ b/stdlib/_curses.pyi @@ -291,6 +291,10 @@ def getsyx() -> Tuple[int, int]: ... def getwin(__file: BinaryIO) -> _CursesWindow: ... def halfdelay(__tenths: int) -> None: ... def has_colors() -> bool: ... + +if sys.version_info >= (3, 10): + def has_extended_color_support() -> bool: ... + def has_ic() -> bool: ... def has_il() -> bool: ... def has_key(__key: int) -> bool: ...