mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Akuli and srittau: Remove Python 2 branches from Python 3 stubs (#5461)
* run script and do some manual changes (Akuli) * do the whole thing manually (srittau) * merge changes (Akuli) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
This commit is contained in:
@@ -348,24 +348,17 @@ def tparm(
|
||||
) -> bytes: ...
|
||||
def typeahead(__fd: int) -> None: ...
|
||||
def unctrl(__ch: _chtype) -> bytes: ...
|
||||
|
||||
if sys.version_info >= (3, 3):
|
||||
def unget_wch(__ch: Union[int, str]) -> 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):
|
||||
def update_lines_cols() -> int: ...
|
||||
|
||||
def update_lines_cols() -> int: ...
|
||||
def use_default_colors() -> None: ...
|
||||
def use_env(__flag: bool) -> None: ...
|
||||
|
||||
class error(Exception): ...
|
||||
|
||||
class _CursesWindow:
|
||||
if sys.version_info >= (3, 3):
|
||||
encoding: str
|
||||
encoding: str
|
||||
@overload
|
||||
def addch(self, ch: _chtype, attr: int = ...) -> None: ...
|
||||
@overload
|
||||
@@ -429,11 +422,10 @@ class _CursesWindow:
|
||||
def getch(self) -> int: ...
|
||||
@overload
|
||||
def getch(self, y: int, x: int) -> int: ...
|
||||
if sys.version_info >= (3, 3):
|
||||
@overload
|
||||
def get_wch(self) -> Union[int, str]: ...
|
||||
@overload
|
||||
def get_wch(self, y: int, x: int) -> Union[int, str]: ...
|
||||
@overload
|
||||
def get_wch(self) -> Union[int, str]: ...
|
||||
@overload
|
||||
def get_wch(self, y: int, x: int) -> Union[int, str]: ...
|
||||
@overload
|
||||
def getkey(self) -> str: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user