mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Prior to 3.8 the underlying C class was not given a name in python, so typeshed added _CursesWindow to use it as a type. Now that it has a name in python, typeshed should use that name. We can keep _CursesWindow as an alias, for anyone using that already.
23 lines
788 B
Python
23 lines
788 B
Python
from _curses import window
|
|
|
|
version: str
|
|
|
|
class _Curses_Panel: # type is <class '_curses_panel.curses panel'> (note the space in the class name)
|
|
def above(self) -> _Curses_Panel: ...
|
|
def below(self) -> _Curses_Panel: ...
|
|
def bottom(self) -> None: ...
|
|
def hidden(self) -> bool: ...
|
|
def hide(self) -> None: ...
|
|
def move(self, y: int, x: int) -> None: ...
|
|
def replace(self, win: window) -> None: ...
|
|
def set_userptr(self, obj: object) -> None: ...
|
|
def show(self) -> None: ...
|
|
def top(self) -> None: ...
|
|
def userptr(self) -> object: ...
|
|
def window(self) -> window: ...
|
|
|
|
def bottom_panel() -> _Curses_Panel: ...
|
|
def new_panel(win: window, /) -> _Curses_Panel: ...
|
|
def top_panel() -> _Curses_Panel: ...
|
|
def update_panels() -> _Curses_Panel: ...
|