mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-28 06:36:54 +08:00
paramiko.ServerInterface: replace str with bytes in some methods (#6254)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user