Skip to content

Commit aeb9c4c

Browse files
authored
[paramiko] Update to 4.0.* (#14527)
Closes: #14524
1 parent 084742b commit aeb9c4c

File tree

5 files changed

+7
-87
lines changed

5 files changed

+7
-87
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.5.*"
1+
version = "4.0.*"
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/__init__.pyi

Lines changed: 6 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from typing import Final
2+
13
from paramiko import util as util
24
from paramiko.agent import Agent as Agent, AgentKey as AgentKey
35
from paramiko.channel import Channel as Channel, ChannelFile as ChannelFile
@@ -10,7 +12,6 @@ from paramiko.client import (
1012
)
1113
from paramiko.common import io_sleep as io_sleep
1214
from paramiko.config import SSHConfig as SSHConfig, SSHConfigDict as SSHConfigDict
13-
from paramiko.dsskey import DSSKey as DSSKey
1415
from paramiko.ecdsakey import ECDSAKey as ECDSAKey
1516
from paramiko.ed25519key import Ed25519Key as Ed25519Key
1617
from paramiko.file import BufferedFile as BufferedFile
@@ -40,49 +41,7 @@ from paramiko.ssh_exception import (
4041
)
4142
from paramiko.transport import SecurityOptions as SecurityOptions, Transport as Transport
4243

43-
__author__: str
44-
__license__: str
45-
__all__ = [
46-
"Agent",
47-
"AgentKey",
48-
"AuthenticationException",
49-
"AutoAddPolicy",
50-
"BadAuthenticationType",
51-
"BadHostKeyException",
52-
"BufferedFile",
53-
"Channel",
54-
"ChannelException",
55-
"ConfigParseError",
56-
"CouldNotCanonicalize",
57-
"DSSKey",
58-
"ECDSAKey",
59-
"Ed25519Key",
60-
"HostKeys",
61-
"Message",
62-
"MissingHostKeyPolicy",
63-
"PKey",
64-
"PasswordRequiredException",
65-
"ProxyCommand",
66-
"ProxyCommandFailure",
67-
"RSAKey",
68-
"RejectPolicy",
69-
"SFTP",
70-
"SFTPAttributes",
71-
"SFTPClient",
72-
"SFTPError",
73-
"SFTPFile",
74-
"SFTPHandle",
75-
"SFTPServer",
76-
"SFTPServerInterface",
77-
"SSHClient",
78-
"SSHConfig",
79-
"SSHConfigDict",
80-
"SSHException",
81-
"SecurityOptions",
82-
"ServerInterface",
83-
"SubsystemHandler",
84-
"Transport",
85-
"WarningPolicy",
86-
"io_sleep",
87-
"util",
88-
]
44+
__version__: Final[str]
45+
__author__: Final[str]
46+
__license__: Final[str]
47+
key_classes: list[type[PKey]]

stubs/paramiko/paramiko/_version.pyi

Lines changed: 0 additions & 2 deletions
This file was deleted.

stubs/paramiko/paramiko/dsskey.pyi

Lines changed: 0 additions & 35 deletions
This file was deleted.

stubs/paramiko/paramiko/ssh_gss.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ class _SSH_GSSAPI_OLD(_SSH_GSSAuth):
2525
def credentials_delegated(self) -> bool: ...
2626
def save_client_creds(self, client_token: str) -> None: ...
2727

28-
_SSH_GSSAPI = _SSH_GSSAPI_OLD
29-
3028
class _SSH_GSSAPI_NEW(_SSH_GSSAuth):
3129
def __init__(self, auth_method: str, gss_deleg_creds: bool) -> None: ...
3230
def ssh_init_sec_context(

0 commit comments

Comments
 (0)