mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-26 13:51:30 +08:00
Fix curses.color_pair signature (#10811)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
@@ -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: ...
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
_?curses.color_pair
|
||||
@@ -1,5 +1,3 @@
|
||||
_?curses.color_pair
|
||||
|
||||
(dbm.gnu)?
|
||||
(locale.bind_textdomain_codeset)?
|
||||
(locale.bindtextdomain)?
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
_?curses.color_pair
|
||||
|
||||
(dbm.gnu)?
|
||||
(locale.bind_textdomain_codeset)?
|
||||
(locale.bindtextdomain)?
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
_?curses.color_pair
|
||||
@@ -1 +0,0 @@
|
||||
_?curses.color_pair
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user