mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Switch to PEP-604 syntax in python2 stubs (#5915)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import List, TypeVar, Union
|
||||
from typing import List, TypeVar
|
||||
|
||||
_CharT = TypeVar("_CharT", str, int)
|
||||
|
||||
@@ -41,22 +41,22 @@ DEL: int
|
||||
|
||||
controlnames: List[int]
|
||||
|
||||
def isalnum(c: Union[str, int]) -> bool: ...
|
||||
def isalpha(c: Union[str, int]) -> bool: ...
|
||||
def isascii(c: Union[str, int]) -> bool: ...
|
||||
def isblank(c: Union[str, int]) -> bool: ...
|
||||
def iscntrl(c: Union[str, int]) -> bool: ...
|
||||
def isdigit(c: Union[str, int]) -> bool: ...
|
||||
def isgraph(c: Union[str, int]) -> bool: ...
|
||||
def islower(c: Union[str, int]) -> bool: ...
|
||||
def isprint(c: Union[str, int]) -> bool: ...
|
||||
def ispunct(c: Union[str, int]) -> bool: ...
|
||||
def isspace(c: Union[str, int]) -> bool: ...
|
||||
def isupper(c: Union[str, int]) -> bool: ...
|
||||
def isxdigit(c: Union[str, int]) -> bool: ...
|
||||
def isctrl(c: Union[str, int]) -> bool: ...
|
||||
def ismeta(c: Union[str, int]) -> bool: ...
|
||||
def isalnum(c: str | int) -> bool: ...
|
||||
def isalpha(c: str | int) -> bool: ...
|
||||
def isascii(c: str | int) -> bool: ...
|
||||
def isblank(c: str | int) -> bool: ...
|
||||
def iscntrl(c: str | int) -> bool: ...
|
||||
def isdigit(c: str | int) -> bool: ...
|
||||
def isgraph(c: str | int) -> bool: ...
|
||||
def islower(c: str | int) -> bool: ...
|
||||
def isprint(c: str | int) -> bool: ...
|
||||
def ispunct(c: str | int) -> bool: ...
|
||||
def isspace(c: str | int) -> bool: ...
|
||||
def isupper(c: str | int) -> bool: ...
|
||||
def isxdigit(c: str | int) -> bool: ...
|
||||
def isctrl(c: str | int) -> bool: ...
|
||||
def ismeta(c: str | int) -> bool: ...
|
||||
def ascii(c: _CharT) -> _CharT: ...
|
||||
def ctrl(c: _CharT) -> _CharT: ...
|
||||
def alt(c: _CharT) -> _CharT: ...
|
||||
def unctrl(c: Union[str, int]) -> str: ...
|
||||
def unctrl(c: str | int) -> str: ...
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
from _curses import _CursesWindow
|
||||
from typing import Callable, Optional, Union
|
||||
from typing import Callable
|
||||
|
||||
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 = ...) -> None: ...
|
||||
def edit(self, validate: Optional[Callable[[int], int]] = ...) -> str: ...
|
||||
def do_command(self, ch: Union[str, int]) -> None: ...
|
||||
def edit(self, validate: Callable[[int], int] | None = ...) -> str: ...
|
||||
def do_command(self, ch: str | int) -> None: ...
|
||||
def gather(self) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user