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
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/paramiko/paramiko/ssh_exception.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/paramiko/paramiko/ssh_exception.pyi
new file mode 100644 (file)
index 0000000..c122d63
--- /dev/null
@@ -0,0 +1,41 @@
+import socket
+from typing import Mapping
+
+from paramiko.pkey import PKey
+
+class SSHException(Exception): ...
+class AuthenticationException(SSHException): ...
+class PasswordRequiredException(AuthenticationException): ...
+
+class BadAuthenticationType(AuthenticationException):
+    allowed_types: list[str]
+    explanation: str
+    def __init__(self, explanation: str, types: list[str]) -> None: ...
+
+class PartialAuthentication(AuthenticationException):
+    allowed_types: list[str]
+    def __init__(self, types: list[str]) -> None: ...
+
+class ChannelException(SSHException):
+    code: int
+    text: str
+    def __init__(self, code: int, text: str) -> None: ...
+
+class BadHostKeyException(SSHException):
+    hostname: str
+    key: PKey
+    expected_key: PKey
+    def __init__(self, hostname: str, got_key: PKey, expected_key: PKey) -> None: ...
+
+class ProxyCommandFailure(SSHException):
+    command: str
+    error: str
+    def __init__(self, command: str, error: str) -> None: ...
+
+class NoValidConnectionsError(socket.error):
+    errors: Mapping[tuple[str, int] | tuple[str, int, int, int], Exception]
+    def __init__(self, errors: Mapping[tuple[str, int] | tuple[str, int, int, int], Exception]) -> None: ...
+    def __reduce__(self) -> tuple[type, tuple[Mapping[tuple[str, int] | tuple[str, int, int, int], Exception]]]: ...
+
+class CouldNotCanonicalize(SSHException): ...
+class ConfigParseError(SSHException): ...