File: //usr/local/CyberCP/lib/python3.10/site-packages/asyncssh/__pycache__/subprocess.cpython-310.pyc
o
�h�* � @ s� d Z ddlmZmZmZmZ ddlmZmZmZm Z ddl
mZ ddlm
Z
ddlmZ er6ddlmZmZ eg d f ZG d
d� dee �ZG dd
� d
ee �ZG dd� dee �ZG dd � d ee �ZG dd� de
e �ZdS )zSSH subprocess handlers� )�
TYPE_CHECKING�Any�AnyStr�Callable)�Dict�Generic�Iterable�Optional� )�EXTENDED_DATA_STDERR)�SSHClientProcess)�DataType)�
SSHChannel�SSHClientChannel�SSHSubprocessProtocolc @ sH e Zd ZdZ ddddefdd�Zdd d
�Zddededefd
d�Z dS )�SSHSubprocessPipezSSH subprocess pipeN�chan�SSHClientChannel[AnyStr]�datatypec C s || _ || _d S �N)�_chan� _datatype)�selfr r � r �F/usr/local/CyberCP/lib/python3.10/site-packages/asyncssh/subprocess.py�__init__* s
zSSHSubprocessPipe.__init__�returnc C � | j �� dS )zShut down the remote processN)r �close�r r r r r / � zSSHSubprocessPipe.close�name�defaultc C s | j �||�S )a> Return additional information about the remote process
This method returns extra information about the channel
associated with this subprocess. See :meth:`get_extra_info()
<SSHClientChannel.get_extra_info>` on :class:`SSHClientChannel`
for additional information.
)r �get_extra_info)r r! r"