|
1 | | -import sys |
2 | 1 | from typing import TypeVar |
3 | 2 |
|
4 | | -if sys.platform != "win32": |
5 | | - _CharT = TypeVar("_CharT", str, int) |
| 3 | +_CharT = TypeVar("_CharT", str, int) |
6 | 4 |
|
7 | | - NUL: int |
8 | | - SOH: int |
9 | | - STX: int |
10 | | - ETX: int |
11 | | - EOT: int |
12 | | - ENQ: int |
13 | | - ACK: int |
14 | | - BEL: int |
15 | | - BS: int |
16 | | - TAB: int |
17 | | - HT: int |
18 | | - LF: int |
19 | | - NL: int |
20 | | - VT: int |
21 | | - FF: int |
22 | | - CR: int |
23 | | - SO: int |
24 | | - SI: int |
25 | | - DLE: int |
26 | | - DC1: int |
27 | | - DC2: int |
28 | | - DC3: int |
29 | | - DC4: int |
30 | | - NAK: int |
31 | | - SYN: int |
32 | | - ETB: int |
33 | | - CAN: int |
34 | | - EM: int |
35 | | - SUB: int |
36 | | - ESC: int |
37 | | - FS: int |
38 | | - GS: int |
39 | | - RS: int |
40 | | - US: int |
41 | | - SP: int |
42 | | - DEL: int |
| 5 | +NUL: int |
| 6 | +SOH: int |
| 7 | +STX: int |
| 8 | +ETX: int |
| 9 | +EOT: int |
| 10 | +ENQ: int |
| 11 | +ACK: int |
| 12 | +BEL: int |
| 13 | +BS: int |
| 14 | +TAB: int |
| 15 | +HT: int |
| 16 | +LF: int |
| 17 | +NL: int |
| 18 | +VT: int |
| 19 | +FF: int |
| 20 | +CR: int |
| 21 | +SO: int |
| 22 | +SI: int |
| 23 | +DLE: int |
| 24 | +DC1: int |
| 25 | +DC2: int |
| 26 | +DC3: int |
| 27 | +DC4: int |
| 28 | +NAK: int |
| 29 | +SYN: int |
| 30 | +ETB: int |
| 31 | +CAN: int |
| 32 | +EM: int |
| 33 | +SUB: int |
| 34 | +ESC: int |
| 35 | +FS: int |
| 36 | +GS: int |
| 37 | +RS: int |
| 38 | +US: int |
| 39 | +SP: int |
| 40 | +DEL: int |
43 | 41 |
|
44 | | - controlnames: list[int] |
45 | | - def isalnum(c: str | int) -> bool: ... |
46 | | - def isalpha(c: str | int) -> bool: ... |
47 | | - def isascii(c: str | int) -> bool: ... |
48 | | - def isblank(c: str | int) -> bool: ... |
49 | | - def iscntrl(c: str | int) -> bool: ... |
50 | | - def isdigit(c: str | int) -> bool: ... |
51 | | - def isgraph(c: str | int) -> bool: ... |
52 | | - def islower(c: str | int) -> bool: ... |
53 | | - def isprint(c: str | int) -> bool: ... |
54 | | - def ispunct(c: str | int) -> bool: ... |
55 | | - def isspace(c: str | int) -> bool: ... |
56 | | - def isupper(c: str | int) -> bool: ... |
57 | | - def isxdigit(c: str | int) -> bool: ... |
58 | | - def isctrl(c: str | int) -> bool: ... |
59 | | - def ismeta(c: str | int) -> bool: ... |
60 | | - def ascii(c: _CharT) -> _CharT: ... |
61 | | - def ctrl(c: _CharT) -> _CharT: ... |
62 | | - def alt(c: _CharT) -> _CharT: ... |
63 | | - def unctrl(c: str | int) -> str: ... |
| 42 | +controlnames: list[int] |
| 43 | + |
| 44 | +def isalnum(c: str | int) -> bool: ... |
| 45 | +def isalpha(c: str | int) -> bool: ... |
| 46 | +def isascii(c: str | int) -> bool: ... |
| 47 | +def isblank(c: str | int) -> bool: ... |
| 48 | +def iscntrl(c: str | int) -> bool: ... |
| 49 | +def isdigit(c: str | int) -> bool: ... |
| 50 | +def isgraph(c: str | int) -> bool: ... |
| 51 | +def islower(c: str | int) -> bool: ... |
| 52 | +def isprint(c: str | int) -> bool: ... |
| 53 | +def ispunct(c: str | int) -> bool: ... |
| 54 | +def isspace(c: str | int) -> bool: ... |
| 55 | +def isupper(c: str | int) -> bool: ... |
| 56 | +def isxdigit(c: str | int) -> bool: ... |
| 57 | +def isctrl(c: str | int) -> bool: ... |
| 58 | +def ismeta(c: str | int) -> bool: ... |
| 59 | +def ascii(c: _CharT) -> _CharT: ... |
| 60 | +def ctrl(c: _CharT) -> _CharT: ... |
| 61 | +def alt(c: _CharT) -> _CharT: ... |
| 62 | +def unctrl(c: str | int) -> str: ... |
0 commit comments