massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / paramiko / paramiko / py3compat.pyi
1 import sys
2 from typing import Any, Iterable, Sequence, Text, Type, TypeVar
3
4 _T = TypeVar("_T")
5
6 PY2: bool
7
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]]
12 long = int
13
14 def input(prompt: Any) -> str: ...
15 def decodebytes(s: bytes) -> bytes: ...
16 def encodebytes(s: bytes) -> bytes: ...
17
18 if sys.version_info >= (3, 0):
19     import builtins as builtins
20     import io
21
22     StringIO = io.StringIO
23     BytesIO = io.BytesIO
24 else:
25     import __builtin__ as builtins
26     import cStringIO
27
28     StringIO = cStringIO.StringIO
29     BytesIO = StringIO
30
31 bytes = builtins.bytes
32
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: ...
41
42 MAXSIZE: int