Skip to content

Commit 6aa6722

Browse files
Update type hints for paramiko 3.4 (#11218)
1 parent d4daff3 commit 6aa6722

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

stubs/paramiko/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.3.*"
1+
version = "3.4.*"
22
upstream_repository = "https://github.com/paramiko/paramiko"
33
# Requires a version of cryptography where cryptography.hazmat.primitives.ciphers.Cipher is generic
44
requires = ["cryptography>=37.0.0"]

stubs/paramiko/paramiko/ssh_exception.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ class ProxyCommandFailure(SSHException):
3232
error: str
3333
def __init__(self, command: str, error: str) -> None: ...
3434

35+
class MessageOrderError(SSHException): ...
36+
3537
class NoValidConnectionsError(socket.error):
3638
errors: Mapping[tuple[str, int] | tuple[str, int, int, int], Exception]
3739
def __init__(self, errors: Mapping[tuple[str, int] | tuple[str, int, int, int], Exception]) -> None: ...

stubs/paramiko/paramiko/transport.pyi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ class _KexEngine(Protocol):
2626
class Transport(Thread, ClosingContextManager):
2727
active: bool
2828
hostname: str | None
29+
server_extensions: dict[str, bytes]
30+
advertise_strict_kex: bool
31+
agreed_on_strict_kex: bool
2932
sock: socket | Channel
3033
packetizer: Packetizer
3134
local_version: str
@@ -81,6 +84,8 @@ class Transport(Thread, ClosingContextManager):
8184
gss_deleg_creds: bool = True,
8285
disabled_algorithms: Mapping[str, Iterable[str]] | None = None,
8386
server_sig_algs: bool = True,
87+
strict_kex: bool = True,
88+
packetizer_class: type[Packetizer] | None = None,
8489
) -> None: ...
8590
@property
8691
def preferred_ciphers(self) -> Sequence[str]: ...

0 commit comments

Comments
 (0)