curses: getch returns an integer (#3156)

This commit is contained in:
Anthony Sottile
2019-07-30 00:25:01 -07:00
committed by Sebastian Rittau
parent 568f1ea555
commit 32a89809f0

View File

@@ -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: ...