2020-12-12 13:17:27 +01:00
|
|
|
import typing as t
|
2020-12-10 21:57:31 +01:00
|
|
|
|
2023-07-18 17:26:03 +02:00
|
|
|
PY: t.Tuple[int, int]
|
2021-01-01 22:55:48 +01:00
|
|
|
PY2: bool
|
|
|
|
|
PY3: bool
|
|
|
|
|
PYPY: bool
|
2021-03-30 19:20:57 +02:00
|
|
|
ONWINDOWS: bool
|
2021-01-01 22:55:48 +01:00
|
|
|
|
2021-02-20 23:52:06 +01:00
|
|
|
stringtypes: t.Tuple[t.Type[bytes], t.Type[str]]
|
|
|
|
|
integertypes: t.Tuple[t.Type[int]]
|
|
|
|
|
unicodestringtype: t.Type[str]
|
|
|
|
|
bytestringtype: t.Type[bytes]
|
|
|
|
|
|
2020-12-10 21:57:31 +01:00
|
|
|
def int2byte(character: int) -> bytes: ...
|
|
|
|
|
def byte2int(character: bytes) -> int: ...
|
|
|
|
|
def str2bytes(string: str) -> bytes: ...
|
|
|
|
|
def bytes2str(string: bytes) -> str: ...
|
2020-12-12 13:17:27 +01:00
|
|
|
def reprstring(data: t.Union[bytes, str]) -> str: ...
|
|
|
|
|
def trimstring(data: t.Union[bytes, str]) -> str: ...
|
|
|
|
|
def integers2bytes(ints: t.Iterable[int]) -> bytes: ...
|
2020-12-10 21:57:31 +01:00
|
|
|
def bytes2integers(data: bytes) -> list[int]: ...
|