mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 19:01:15 +08:00
update _CursesWindow to the runtime name "window" (#12744)
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.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
from _curses import _CursesWindow
|
||||
from _curses import window
|
||||
from collections.abc import Callable
|
||||
|
||||
def rectangle(win: _CursesWindow, uly: int, ulx: int, lry: int, lrx: int) -> None: ...
|
||||
def rectangle(win: window, uly: int, ulx: int, lry: int, lrx: int) -> None: ...
|
||||
|
||||
class Textbox:
|
||||
stripspaces: bool
|
||||
def __init__(self, win: _CursesWindow, insert_mode: bool = False) -> None: ...
|
||||
def __init__(self, win: window, insert_mode: bool = False) -> None: ...
|
||||
def edit(self, validate: Callable[[int], int] | None = None) -> str: ...
|
||||
def do_command(self, ch: str | int) -> None: ...
|
||||
def gather(self) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user