mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Update type hints for paramiko 3.4 (#11218)
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user