mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Fix build (#5086)
Run the mypy test suite using Ubuntu 18.04. Ubuntu 20.04 doesn't have a package for virtualenv on Python 2. Also, curses.color_pair() now has a named argument.
This commit is contained in:
@@ -223,7 +223,14 @@ def beep() -> None: ...
|
||||
def can_change_color() -> bool: ...
|
||||
def cbreak(__flag: bool = ...) -> None: ...
|
||||
def color_content(__color_number: int) -> Tuple[int, int, int]: ...
|
||||
def color_pair(__color_number: 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 curs_set(__visibility: int) -> int: ...
|
||||
def def_prog_mode() -> None: ...
|
||||
def def_shell_mode() -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user