diff --git a/stdlib/_curses.pyi b/stdlib/_curses.pyi index a4fd949665b3..e2319a5fcc1f 100644 --- a/stdlib/_curses.pyi +++ b/stdlib/_curses.pyi @@ -276,12 +276,7 @@ if sys.platform != "win32": def can_change_color() -> bool: ... def cbreak(__flag: bool = True) -> None: ... def color_content(__color_number: int) -> tuple[int, int, int]: ... - # Changed in Python 3.8.8 and 3.9.2 - if sys.version_info >= (3, 8): - def color_pair(pair_number: int) -> int: ... - else: - def color_pair(__color_number: int) -> int: ... - + def color_pair(__pair_number: int) -> int: ... def curs_set(__visibility: int) -> int: ... def def_prog_mode() -> None: ... def def_shell_mode() -> None: ... diff --git a/tests/stubtest_allowlists/darwin-py310.txt b/tests/stubtest_allowlists/darwin-py310.txt deleted file mode 100644 index 197a5ff3e7c5..000000000000 --- a/tests/stubtest_allowlists/darwin-py310.txt +++ /dev/null @@ -1 +0,0 @@ -_?curses.color_pair diff --git a/tests/stubtest_allowlists/darwin-py311.txt b/tests/stubtest_allowlists/darwin-py311.txt index e269cc19905c..d20383941752 100644 --- a/tests/stubtest_allowlists/darwin-py311.txt +++ b/tests/stubtest_allowlists/darwin-py311.txt @@ -1,5 +1,3 @@ -_?curses.color_pair - (dbm.gnu)? (locale.bind_textdomain_codeset)? (locale.bindtextdomain)? diff --git a/tests/stubtest_allowlists/darwin-py312.txt b/tests/stubtest_allowlists/darwin-py312.txt index e269cc19905c..d20383941752 100644 --- a/tests/stubtest_allowlists/darwin-py312.txt +++ b/tests/stubtest_allowlists/darwin-py312.txt @@ -1,5 +1,3 @@ -_?curses.color_pair - (dbm.gnu)? (locale.bind_textdomain_codeset)? (locale.bindtextdomain)? diff --git a/tests/stubtest_allowlists/linux-py310.txt b/tests/stubtest_allowlists/linux-py310.txt deleted file mode 100644 index 197a5ff3e7c5..000000000000 --- a/tests/stubtest_allowlists/linux-py310.txt +++ /dev/null @@ -1 +0,0 @@ -_?curses.color_pair diff --git a/tests/stubtest_allowlists/linux-py311.txt b/tests/stubtest_allowlists/linux-py311.txt deleted file mode 100644 index 197a5ff3e7c5..000000000000 --- a/tests/stubtest_allowlists/linux-py311.txt +++ /dev/null @@ -1 +0,0 @@ -_?curses.color_pair diff --git a/tests/stubtest_allowlists/linux-py312.txt b/tests/stubtest_allowlists/linux-py312.txt index 8c7bc9af5cf0..99ddc1b61c4a 100644 --- a/tests/stubtest_allowlists/linux-py312.txt +++ b/tests/stubtest_allowlists/linux-py312.txt @@ -1,5 +1,3 @@ -_?curses.color_pair - # Exists on some Linux builds, and is documented, # but is unavailable in Github Actions on Linux with Python 3.12 (os|posix).CLONE_NEWTIME