Remove Windows checks from curses (#11241)

Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
Ryan McCampbell
2024-04-06 07:12:48 -07:00
committed by GitHub
parent 4a33b2f3a0
commit 5e2f741209
6 changed files with 652 additions and 653 deletions

View File

@@ -1,13 +1,11 @@
import sys
from _curses import _CursesWindow
from collections.abc import Callable
if sys.platform != "win32":
from _curses import _CursesWindow
def rectangle(win: _CursesWindow, uly: int, ulx: int, lry: int, lrx: int) -> None: ...
def rectangle(win: _CursesWindow, uly: int, ulx: int, lry: int, lrx: int) -> None: ...
class Textbox:
stripspaces: bool
def __init__(self, win: _CursesWindow, 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: ...
class Textbox:
stripspaces: bool
def __init__(self, win: _CursesWindow, 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: ...