curses: getstr(), inch() and instr() no longer return union type (#6409)

This commit is contained in:
Rohan
2021-11-28 05:34:11 -05:00
committed by GitHub
parent d68a28fb52
commit 45e39edb22

View File

@@ -444,13 +444,13 @@ class _CursesWindow:
def getmaxyx(self) -> tuple[int, int]: ...
def getparyx(self) -> tuple[int, int]: ...
@overload
def getstr(self) -> _chtype: ...
def getstr(self) -> bytes: ...
@overload
def getstr(self, n: int) -> _chtype: ...
def getstr(self, n: int) -> bytes: ...
@overload
def getstr(self, y: int, x: int) -> _chtype: ...
def getstr(self, y: int, x: int) -> bytes: ...
@overload
def getstr(self, y: int, x: int, n: int) -> _chtype: ...
def getstr(self, y: int, x: int, n: int) -> bytes: ...
def getyx(self) -> tuple[int, int]: ...
@overload
def hline(self, ch: _chtype, n: int) -> None: ...
@@ -460,9 +460,9 @@ class _CursesWindow:
def idlok(self, yes: bool) -> None: ...
def immedok(self, flag: bool) -> None: ...
@overload
def inch(self) -> _chtype: ...
def inch(self) -> int: ...
@overload
def inch(self, y: int, x: int) -> _chtype: ...
def inch(self, y: int, x: int) -> int: ...
@overload
def insch(self, ch: _chtype, attr: int = ...) -> None: ...
@overload
@@ -478,9 +478,9 @@ class _CursesWindow:
@overload
def insstr(self, y: int, x: int, str: str, attr: int = ...) -> None: ...
@overload
def instr(self, n: int = ...) -> _chtype: ...
def instr(self, n: int = ...) -> bytes: ...
@overload
def instr(self, y: int, x: int, n: int = ...) -> _chtype: ...
def instr(self, y: int, x: int, n: int = ...) -> bytes: ...
def is_linetouched(self, __line: int) -> bool: ...
def is_wintouched(self) -> bool: ...
def keypad(self, yes: bool) -> None: ...