mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
HAVE_NCURSESW is present on macos (#12441)
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
webbrowser.MacOSX.__init__
|
||||
|
||||
# TODO: fix
|
||||
_curses.unget_wch
|
||||
_curses.window.get_wch
|
||||
curses.window.get_wch
|
||||
|
||||
# These entries looks like a `setup-python` bug:
|
||||
(dbm.gnu)?
|
||||
(_?locale.bind_textdomain_codeset)?
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
# new in py313
|
||||
posixpath.splitroot
|
||||
|
||||
# Depends on HAVE_NCURSESW and how we install CPython,
|
||||
# should be removed when 3.13 will be officially released:
|
||||
_?curses.unget_wch
|
||||
_?curses.window.get_wch
|
||||
|
||||
# Exists locally on MacOS but not on GitHub
|
||||
(mmap.MAP_32BIT)?
|
||||
|
||||
|
||||
@@ -368,11 +368,7 @@ def tparm(
|
||||
) -> bytes: ...
|
||||
def typeahead(fd: int, /) -> None: ...
|
||||
def unctrl(ch: _ChType, /) -> bytes: ...
|
||||
|
||||
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 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: ...
|
||||
@@ -447,13 +443,10 @@ class _CursesWindow:
|
||||
def getch(self) -> int: ...
|
||||
@overload
|
||||
def getch(self, y: int, x: int) -> int: ...
|
||||
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 get_wch(self) -> int | str: ...
|
||||
@overload
|
||||
def get_wch(self, y: int, x: int) -> int | str: ...
|
||||
@overload
|
||||
def getkey(self) -> str: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user