mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
paramiko.Channel - mark arguments as also accepting bytes (#6276)
This commit is contained in:
@@ -41,22 +41,22 @@ class Channel(ClosingContextManager):
|
||||
def __init__(self, chanid: int) -> None: ...
|
||||
def __del__(self) -> None: ...
|
||||
def get_pty(
|
||||
self, term: str = ..., width: int = ..., height: int = ..., width_pixels: int = ..., height_pixels: int = ...
|
||||
self, term: str | bytes = ..., width: int = ..., height: int = ..., width_pixels: int = ..., height_pixels: int = ...
|
||||
) -> None: ...
|
||||
def invoke_shell(self) -> None: ...
|
||||
def exec_command(self, command: str) -> None: ...
|
||||
def invoke_subsystem(self, subsystem: str) -> None: ...
|
||||
def exec_command(self, command: str | bytes) -> None: ...
|
||||
def invoke_subsystem(self, subsystem: str | bytes) -> None: ...
|
||||
def resize_pty(self, width: int = ..., height: int = ..., width_pixels: int = ..., height_pixels: int = ...) -> None: ...
|
||||
def update_environment(self, environment: Mapping[str, str]) -> None: ...
|
||||
def set_environment_variable(self, name: str, value: str) -> None: ...
|
||||
def update_environment(self, environment: Mapping[str | bytes, str | bytes]) -> None: ...
|
||||
def set_environment_variable(self, name: str | bytes, value: str | bytes) -> None: ...
|
||||
def exit_status_ready(self) -> bool: ...
|
||||
def recv_exit_status(self) -> int: ...
|
||||
def send_exit_status(self, status: int) -> None: ...
|
||||
def request_x11(
|
||||
self,
|
||||
screen_number: int = ...,
|
||||
auth_protocol: str | None = ...,
|
||||
auth_cookie: str | None = ...,
|
||||
auth_protocol: str | bytes | None = ...,
|
||||
auth_cookie: str | bytes | None = ...,
|
||||
single_connection: bool = ...,
|
||||
handler: Callable[[Channel, tuple[str, int]], None] | None = ...,
|
||||
) -> bytes: ...
|
||||
|
||||
Reference in New Issue
Block a user