Some curses functions were removed in 3.12 for macos (#10808)

This commit is contained in:
Nikita Sobolev
2023-09-30 12:28:09 +03:00
committed by GitHub
parent 398b31de92
commit 4c5d3e5ad2
2 changed files with 11 additions and 9 deletions

View File

@@ -366,7 +366,10 @@ if sys.platform != "win32":
) -> bytes: ...
def typeahead(__fd: int) -> None: ...
def unctrl(__ch: _ChType) -> bytes: ...
def unget_wch(__ch: int | str) -> None: ...
if sys.version_info < (3, 12) or sys.platform != "darwin":
# The support for macos was dropped in 3.12
def unget_wch(__ch: int | str) -> None: ...
def ungetch(__ch: _ChType) -> None: ...
def ungetmouse(__id: int, __x: int, __y: int, __z: int, __bstate: int) -> None: ...
def update_lines_cols() -> None: ...
@@ -441,10 +444,13 @@ if sys.platform != "win32":
def getch(self) -> int: ...
@overload
def getch(self, y: int, x: int) -> int: ...
@overload
def get_wch(self) -> int | str: ...
@overload
def get_wch(self, y: int, x: int) -> int | str: ...
if sys.version_info < (3, 12) or sys.platform != "darwin":
# The support for macos was dropped in 3.12
@overload
def get_wch(self) -> int | str: ...
@overload
def get_wch(self, y: int, x: int) -> int | str: ...
@overload
def getkey(self) -> str: ...
@overload