2 from typing import Any, Iterable, Sequence, Text, Type, TypeVar
8 string_types: Type[Any] | Sequence[Type[Any]]
9 text_type: Type[Any] | Sequence[Type[Any]]
10 bytes_types: Type[Any] | Sequence[Type[Any]]
11 integer_types: Type[Any] | Sequence[Type[Any]]
14 def input(prompt: Any) -> str: ...
15 def decodebytes(s: bytes) -> bytes: ...
16 def encodebytes(s: bytes) -> bytes: ...
18 if sys.version_info >= (3, 0):
19 import builtins as builtins
22 StringIO = io.StringIO
25 import __builtin__ as builtins
28 StringIO = cStringIO.StringIO
31 bytes = builtins.bytes
33 def byte_ord(c: int | str) -> int: ...
34 def byte_chr(c: int) -> bytes: ...
35 def byte_mask(c: int, mask: int) -> bytes: ...
36 def b(s: bytes | str, encoding: str = ...) -> bytes: ...
37 def u(s: bytes | str, encoding: str = ...) -> Text: ...
38 def b2s(s: bytes | str) -> str: ...
39 def is_callable(c: Any) -> bool: ...
40 def next(c: Iterable[_T]) -> _T: ...