mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-26 12:56:46 +08:00
Suffix T to type variable names (#4898)
* _MessageType to _MessageT * _default to _T * _TConnection to _ConnectionT, _TListener to _ListenerT * _Number to _NumberT * _MessageVar to _MessageT * _Type to _TypeT * _ArgType to _T * _Ch to _CharT Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from typing import List, TypeVar, Union
|
||||
|
||||
_Ch = TypeVar("_Ch", str, int)
|
||||
_CharT = TypeVar("_CharT", str, int)
|
||||
|
||||
NUL: int
|
||||
SOH: int
|
||||
@@ -56,7 +56,7 @@ 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 ascii(c: _Ch) -> _Ch: ...
|
||||
def ctrl(c: _Ch) -> _Ch: ...
|
||||
def alt(c: _Ch) -> _Ch: ...
|
||||
def ascii(c: _CharT) -> _CharT: ...
|
||||
def ctrl(c: _CharT) -> _CharT: ...
|
||||
def alt(c: _CharT) -> _CharT: ...
|
||||
def unctrl(c: Union[str, int]) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user