paramiko.ServerInterface: replace str with bytes in some methods (#6254)

This commit is contained in:
Manfred Kaiser
2021-11-08 09:57:29 +01:00
committed by GitHub
parent 3876587a65
commit 977a32a3c9

View File

@@ -1,5 +1,5 @@
import threading
from typing import Any, Tuple
from typing import Tuple
from paramiko.channel import Channel
from paramiko.message import Message
@@ -19,9 +19,9 @@ class ServerInterface:
def enable_auth_gssapi(self) -> bool: ...
def check_port_forward_request(self, address: str, port: int) -> int: ...
def cancel_port_forward_request(self, address: str, port: int) -> None: ...
def check_global_request(self, kind: str, msg: Message) -> bool | Tuple[Any, ...]: ...
def check_global_request(self, kind: str, msg: Message) -> bool | Tuple[bool | int | str, ...]: ...
def check_channel_pty_request(
self, channel: Channel, term: str, width: int, height: int, pixelwidth: int, pixelheight: int, modes: str
self, channel: Channel, term: bytes, width: int, height: int, pixelwidth: int, pixelheight: int, modes: bytes
) -> bool: ...
def check_channel_shell_request(self, channel: Channel) -> bool: ...
def check_channel_exec_request(self, channel: Channel, command: bytes) -> bool: ...
@@ -34,7 +34,7 @@ class ServerInterface:
) -> bool: ...
def check_channel_forward_agent_request(self, channel: Channel) -> bool: ...
def check_channel_direct_tcpip_request(self, chanid: int, origin: tuple[str, int], destination: tuple[str, int]) -> int: ...
def check_channel_env_request(self, channel: Channel, name: str, value: str) -> bool: ...
def check_channel_env_request(self, channel: Channel, name: bytes, value: bytes) -> bool: ...
def get_banner(self) -> tuple[str | None, str | None]: ...
class InteractiveQuery: