Fix type annotations for get_wch / unget_wch (#3157)

This commit is contained in:
Anthony Sottile
2019-07-30 08:57:11 -07:00
committed by Sebastian Rittau
parent c6cbe4da66
commit 29dde6c883

View File

@@ -287,7 +287,7 @@ def tparm(fmt: bytes, i1: int = ..., i2: int = ..., i3: int = ..., i4: int = ...
def typeahead(fd: int) -> None: ...
def unctrl(ch: _chtype) -> bytes: ...
if sys.version_info >= (3, 3):
def unget_wch(ch: _chtype) -> None: ...
def unget_wch(ch: Union[int, str]) -> None: ...
def ungetch(ch: _chtype) -> None: ...
def ungetmouse(id: int, x: int, y: int, z: int, bstate: int) -> None: ...
if sys.version_info >= (3, 5):
@@ -355,9 +355,9 @@ class _CursesWindow:
def getch(self, y: int, x: int) -> int: ...
if sys.version_info >= (3, 3):
@overload
def get_wch(self) -> _chtype: ...
def get_wch(self) -> Union[int, str]: ...
@overload
def get_wch(self, y: int, x: int) -> _chtype: ...
def get_wch(self, y: int, x: int) -> Union[int, str]: ...
@overload
def getkey(self) -> str: ...
@overload