massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / paramiko / paramiko / ssh_exception.pyi
1 import socket
2 from typing import Mapping
3
4 from paramiko.pkey import PKey
5
6 class SSHException(Exception): ...
7 class AuthenticationException(SSHException): ...
8 class PasswordRequiredException(AuthenticationException): ...
9
10 class BadAuthenticationType(AuthenticationException):
11     allowed_types: list[str]
12     explanation: str
13     def __init__(self, explanation: str, types: list[str]) -> None: ...
14
15 class PartialAuthentication(AuthenticationException):
16     allowed_types: list[str]
17     def __init__(self, types: list[str]) -> None: ...
18
19 class ChannelException(SSHException):
20     code: int
21     text: str
22     def __init__(self, code: int, text: str) -> None: ...
23
24 class BadHostKeyException(SSHException):
25     hostname: str
26     key: PKey
27     expected_key: PKey
28     def __init__(self, hostname: str, got_key: PKey, expected_key: PKey) -> None: ...
29
30 class ProxyCommandFailure(SSHException):
31     command: str
32     error: str
33     def __init__(self, command: str, error: str) -> None: ...
34
35 class NoValidConnectionsError(socket.error):
36     errors: Mapping[tuple[str, int] | tuple[str, int, int, int], Exception]
37     def __init__(self, errors: Mapping[tuple[str, int] | tuple[str, int, int, int], Exception]) -> None: ...
38     def __reduce__(self) -> tuple[type, tuple[Mapping[tuple[str, int] | tuple[str, int, int, int], Exception]]]: ...
39
40 class CouldNotCanonicalize(SSHException): ...
41 class ConfigParseError(SSHException): ...