
    i                    |    d dl mZ d dlZd dlmc mZ d dlm	Z	 d dl
mZ ddlmZ ddlmZmZ  G d d	e          ZdS )
    )annotationsN)abstractmethod)Signals   )AsyncResource)ByteReceiveStreamByteSendStreamc                  :   e Zd ZdZedd            Zedd            Zedd            Zedd
            Ze	edd                        Z
e	edd                        Ze	edd                        Ze	edd                        Ze	edd                        ZdS )Processz5An asynchronous version of :class:`subprocess.Popen`.returnintc                
   K   dS )z^
        Wait until the process exits.

        :return: the exit code of the process
        N selfs    T/root/projects/butler/venv/lib64/python3.11/site-packages/anyio/abc/_subprocesses.pywaitzProcess.wait   s
            Nonec                    dS )z
        Terminates the process, gracefully if possible.

        On Windows, this calls ``TerminateProcess()``.
        On POSIX systems, this sends ``SIGTERM`` to the process.

        .. seealso:: :meth:`subprocess.Popen.terminate`
        Nr   r   s    r   	terminatezProcess.terminate         r   c                    dS )z
        Kills the process.

        On Windows, this calls ``TerminateProcess()``.
        On POSIX systems, this sends ``SIGKILL`` to the process.

        .. seealso:: :meth:`subprocess.Popen.kill`
        Nr   r   s    r   killzProcess.kill    r   r   signalr   c                    dS )z
        Send a signal to the subprocess.

        .. seealso:: :meth:`subprocess.Popen.send_signal`

        :param signal: the signal number (e.g. :data:`signal.SIGHUP`)
        Nr   )r   r   s     r   send_signalzProcess.send_signal+   r   r   c                    dS )zThe process ID of the process.Nr   r   s    r   pidzProcess.pid5   r   r   
int | Nonec                    dS )zw
        The return code of the process. If the process has not yet terminated, this will
        be ``None``.
        Nr   r   s    r   
returncodezProcess.returncode:   r   r   ByteSendStream | Nonec                    dS )z1The stream for the standard input of the process.Nr   r   s    r   stdinzProcess.stdinB   r   r   ByteReceiveStream | Nonec                    dS )z2The stream for the standard output of the process.Nr   r   s    r   stdoutzProcess.stdoutG   r   r   c                    dS )z8The stream for the standard error output of the process.Nr   r   s    r   stderrzProcess.stderrL   r   r   N)r   r   )r   r   )r   r   r   r   )r   r    )r   r#   )r   r&   )__name__
__module____qualname____doc__r   r   r   r   r   propertyr   r"   r%   r(   r*   r   r   r   r   r   
   sx       ??   ^    ^    ^    ^ - - - ^ X-    ^ X @ @ @ ^ X@ A A A ^ XA G G G ^ XG G Gr   r   )
__future__r   builtins@py_builtins_pytest.assertion.rewrite	assertionrewrite
@pytest_arabcr   r   r   
_resourcesr   _streamsr   r	   r   r   r   r   <module>r:      s    " " " " " "                           % % % % % % 7 7 7 7 7 7 7 7EG EG EG EG EGm EG EG EG EG EGr   