paramiko: add ProxyCommand to _SocketLike (#12697)

This commit is contained in:
Jinzhe Zeng
2024-09-27 16:36:10 -04:00
committed by GitHub
parent 283ff95ea0
commit d828a5ef92

View File

@@ -12,13 +12,14 @@ from paramiko.channel import Channel
from paramiko.message import Message
from paramiko.packet import Packetizer
from paramiko.pkey import PKey
from paramiko.proxy import ProxyCommand
from paramiko.server import ServerInterface, SubsystemHandler
from paramiko.sftp_client import SFTPClient
from paramiko.ssh_gss import _SSH_GSSAuth
from paramiko.util import ClosingContextManager
_Addr: TypeAlias = tuple[str, int]
_SocketLike: TypeAlias = str | _Addr | socket | Channel
_SocketLike: TypeAlias = str | _Addr | socket | Channel | ProxyCommand
class _KexEngine(Protocol):
def start_kex(self) -> None: ...