mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
curses: getch returns an integer (#3156)
This commit is contained in:
committed by
Sebastian Rittau
parent
568f1ea555
commit
32a89809f0
@@ -350,9 +350,9 @@ class _CursesWindow:
|
||||
def getbegyx(self) -> Tuple[int, int]: ...
|
||||
def getbkgd(self) -> Tuple[int, int]: ...
|
||||
@overload
|
||||
def getch(self) -> _chtype: ...
|
||||
def getch(self) -> int: ...
|
||||
@overload
|
||||
def getch(self, y: int, x: int) -> _chtype: ...
|
||||
def getch(self, y: int, x: int) -> int: ...
|
||||
if sys.version_info >= (3, 3):
|
||||
@overload
|
||||
def get_wch(self) -> _chtype: ...
|
||||
|
||||
Reference in New Issue
Block a user