From 29dde6c8833697462fd4dc73d77e48047f418c60 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Tue, 30 Jul 2019 08:57:11 -0700 Subject: [PATCH] Fix type annotations for get_wch / unget_wch (#3157) --- stdlib/2and3/_curses.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/2and3/_curses.pyi b/stdlib/2and3/_curses.pyi index efb7e7994..cf640b53f 100644 --- a/stdlib/2and3/_curses.pyi +++ b/stdlib/2and3/_curses.pyi @@ -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