Skip to content

Commit

Permalink
Fix curses.color_pair signature (#10811)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
sobolevn and AlexWaygood committed Sep 30, 2023
1 parent 16b9884 commit 460fa14
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 15 deletions.
7 changes: 1 addition & 6 deletions stdlib/_curses.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down
1 change: 0 additions & 1 deletion tests/stubtest_allowlists/darwin-py310.txt

This file was deleted.

2 changes: 0 additions & 2 deletions tests/stubtest_allowlists/darwin-py311.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
_?curses.color_pair

(dbm.gnu)?
(locale.bind_textdomain_codeset)?
(locale.bindtextdomain)?
Expand Down
2 changes: 0 additions & 2 deletions tests/stubtest_allowlists/darwin-py312.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
_?curses.color_pair

(dbm.gnu)?
(locale.bind_textdomain_codeset)?
(locale.bindtextdomain)?
Expand Down
1 change: 0 additions & 1 deletion tests/stubtest_allowlists/linux-py310.txt

This file was deleted.

1 change: 0 additions & 1 deletion tests/stubtest_allowlists/linux-py311.txt

This file was deleted.

2 changes: 0 additions & 2 deletions tests/stubtest_allowlists/linux-py312.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 460fa14

Please sign in to comment.