mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +08:00
Big diff: Use new "|" union syntax (#5872)
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: ...
|
||||
|
||||
Reference in New Issue
Block a user