Update type hints for paramiko 3.4 (#11218)

This commit is contained in:
Manfred Kaiser
2024-01-02 09:45:43 +01:00
committed by GitHub
parent d4daff337f
commit 6aa6722fe1
3 changed files with 8 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
version = "3.3.*"
version = "3.4.*"
upstream_repository = "https://github.com/paramiko/paramiko"
# Requires a version of cryptography where cryptography.hazmat.primitives.ciphers.Cipher is generic
requires = ["cryptography>=37.0.0"]

View File

@@ -32,6 +32,8 @@ class ProxyCommandFailure(SSHException):
error: str
def __init__(self, command: str, error: str) -> None: ...
class MessageOrderError(SSHException): ...
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: ...

View File

@@ -26,6 +26,9 @@ class _KexEngine(Protocol):
class Transport(Thread, ClosingContextManager):
active: bool
hostname: str | None
server_extensions: dict[str, bytes]
advertise_strict_kex: bool
agreed_on_strict_kex: bool
sock: socket | Channel
packetizer: Packetizer
local_version: str
@@ -81,6 +84,8 @@ class Transport(Thread, ClosingContextManager):
gss_deleg_creds: bool = True,
disabled_algorithms: Mapping[str, Iterable[str]] | None = None,
server_sig_algs: bool = True,
strict_kex: bool = True,
packetizer_class: type[Packetizer] | None = None,
) -> None: ...
@property
def preferred_ciphers(self) -> Sequence[str]: ...