mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-21 10:32:08 +08:00
curses: various fixes (#3771)
- fix arg names - fix types based on default value - mark positional-only args
This commit is contained in:
@@ -12,4 +12,4 @@ COLS: int
|
||||
COLORS: int
|
||||
COLOR_PAIRS: int
|
||||
|
||||
def wrapper(func: Callable[..., _T], *arg: Any, **kwds: Any) -> _T: ...
|
||||
def wrapper(__func: Callable[..., _T], *arg: Any, **kwds: Any) -> _T: ...
|
||||
|
||||
@@ -15,6 +15,6 @@ class _Curses_Panel: # type is <class '_curses_panel.curses panel'> (note the s
|
||||
def window(self) -> _CursesWindow: ...
|
||||
|
||||
def bottom_panel() -> _Curses_Panel: ...
|
||||
def new_panel(win: _CursesWindow) -> _Curses_Panel: ...
|
||||
def new_panel(__win: _CursesWindow) -> _Curses_Panel: ...
|
||||
def top_panel() -> _Curses_Panel: ...
|
||||
def update_panels() -> _Curses_Panel: ...
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
from _curses import _CursesWindow
|
||||
from typing import Callable, Union
|
||||
from typing import Callable, Optional, Union
|
||||
|
||||
def rectangle(win: _CursesWindow, uly: int, ulx: int, lry: int, lrx: int) -> None: ...
|
||||
|
||||
class Textbox:
|
||||
stripspaces: bool
|
||||
def __init__(self, w: _CursesWindow, insert_mode: bool = ...) -> None: ...
|
||||
def edit(self, validate: Callable[[int], int]) -> str: ...
|
||||
def __init__(self, win: _CursesWindow, insert_mode: bool = ...) -> None: ...
|
||||
def edit(self, validate: Optional[Callable[[int], int]] = ...) -> str: ...
|
||||
def do_command(self, ch: Union[str, int]) -> None: ...
|
||||
def gather(self) -> str: ...
|
||||
|
||||
@@ -87,8 +87,6 @@ contextvars.Context.get
|
||||
contextvars.ContextVar.reset
|
||||
contextvars.ContextVar.set
|
||||
copy.PyStringMap
|
||||
curses.panel.new_panel
|
||||
curses.wrapper
|
||||
dataclasses.dataclass
|
||||
dataclasses.field
|
||||
dataclasses.make_dataclass
|
||||
|
||||
@@ -256,8 +256,6 @@ curses.COLORS
|
||||
curses.COLOR_PAIRS
|
||||
curses.COLS
|
||||
curses.LINES
|
||||
curses.textpad.Textbox.__init__
|
||||
curses.textpad.Textbox.edit
|
||||
dbm.error
|
||||
dbm.ndbm
|
||||
decimal.DecimalException.handle
|
||||
|
||||
Reference in New Issue
Block a user