+
    P\io  c                  s  a  0 t $ ^ RIHt ^ RIt^ RIHtHtHtHt ^ RI	H
t
 ^ RIHt ^ RIHtHtHt ^ RIHtHtHtHt ^RIHt ^R	IHt ^R
IHt ]P8                  R%8  d   ^ RIHt M^ RIHt ]]] RR3,          t!R]"R&   RRRRR]R]RRRRRRRRR^ RRRR&RRRRRRR R'/R! R" llt#R]R]R]RRRRRRR^ RRRR&RRRRRRR R'/R# R$ llt$R# )(i    )annotationsN)AsyncIterableIterableMappingSequence)BytesIO)PathLike)PIPECalledProcessErrorCompletedProcess)IOAnyUnioncast)Process)get_async_backend)create_task_group)	TypeAliaszPathLike[str]zPathLike[bytes]r   StrOrBytesPathinputstdinstdoutstderrcheckTcwdenvstartupinfocreationflagsstart_new_sessionFpass_fdsusergroupextra_groupsumaskc          "     s\    V ^8  d   QhRRRRRRRRRRR	R
RRRRRRRRRR
RRRRRRRRRRRR/# )   command)StrOrBytesPath | Sequence[StrOrBytesPath]r   zbytes | Noner   int | IO[Any] | Noner   r   r   boolr   StrOrBytesPath | Noner   Mapping[str, str] | Noner   r   r   intr   r   Sequence[int]r   str | int | Noner   r    Iterable[str | int] | Noner!   returnzCompletedProcess[bytes] Zformat   ">/usr/lib/python3.14/site-packages/anyio/_core/_subprocesses.py__annotate__r2      s     gT gT6gT gT  	gT
 !gT !gT gT 
gT 
"gT gT gT gT gT gT gT  -!gT" #gT$ %gT    c               sV  a"   R V3R llpVe   Ve   \        R4      h\        T V'       d   \        MTVVVVVV	V
VVVVVR7      G Rj  xL
 ;_uu_4       GRj  xL
 pRR.o\        4       ;_uu_4       GRj  xL
 pVP                  '       d   VP                  VVP                  ^ 4       VP                  '       d   VP                  VVP                  ^4       VP                  '       dN   V'       dF   VP                  P                  V4      G Rj  xL
  VP                  P                  4       G Rj  xL
  VP                  4       G Rj  xL
  RRR4      GRj  xL
  RRR4      GRj  xL
  Sw  ppV'       d8   XP                  ^ 8w  d'   \        \        \        VP                  4      V VV4      h\        V \        \        XP                  4      VV4      #  EL EL ELj L L L L  + GRj  xL 
 '       g   i     L; i L  + GRj  xL 
 '       g   i     L; i5i)as  
Run an external command in a subprocess and wait until it completes.

.. seealso:: :func:`subprocess.run`

:param command: either a string to pass to the shell, or an iterable of strings
    containing the executable name or path and its arguments
:param input: bytes passed to the standard input of the subprocess
:param stdin: one of :data:`subprocess.PIPE`, :data:`subprocess.DEVNULL`,
    a file-like object, or `None`; ``input`` overrides this
:param stdout: one of :data:`subprocess.PIPE`, :data:`subprocess.DEVNULL`,
    a file-like object, or `None`
:param stderr: one of :data:`subprocess.PIPE`, :data:`subprocess.DEVNULL`,
    :data:`subprocess.STDOUT`, a file-like object, or `None`
:param check: if ``True``, raise :exc:`~subprocess.CalledProcessError` if the
    process terminates with a return code other than 0
:param cwd: If not ``None``, change the working directory to this before running the
    command
:param env: if not ``None``, this mapping replaces the inherited environment
    variables from the parent process
:param startupinfo: an instance of :class:`subprocess.STARTUPINFO` that can be used
    to specify process startup parameters (Windows only)
:param creationflags: flags that can be used to control the creation of the
    subprocess (see :class:`subprocess.Popen` for the specifics)
:param start_new_session: if ``true`` the setsid() system call will be made in the
    child process prior to the execution of the subprocess. (POSIX only)
:param pass_fds: sequence of file descriptors to keep open between the parent and
    child processes. (POSIX only)
:param user: effective user to run the process as (Python >= 3.9, POSIX only)
:param group: effective group to run the process as (Python >= 3.9, POSIX only)
:param extra_groups: supplementary groups to set in the subprocess (Python >= 3.9,
    POSIX only)
:param umask: if not negative, this umask is applied in the child process before
    running the given command (Python >= 3.9, POSIX only)
:return: an object representing the completed process
:raises ~subprocess.CalledProcessError: if ``check`` is ``True`` and the process
    exits with a nonzero return code

c               s$    V ^8  d   QhRRRRRR/# )r"   streamzAsyncIterable[bytes]indexr)   r-   ZNoner.   r/   r0   r1   r2   Z!run_process.<locals>.__annotate__Q   s"     3 3#7 3 3 3r3   c                s   <"   \        4       pV   R j  xL
  pVP                  V4       K   LDTP                  4       ST&   R # 5i)N)r   ZwriteZgetvalue)r4   r5   ZbufferZchunkstream_contentss   &&  r1   drain_streamZ!run_process.<locals>.drain_streamQ   sB     ! 	  	 %LL	 6 "(!2s   A/-/A/ANz&only one of stdin and input is allowed)r   r   r   r   r   r   r   r   r   r   r   r    r!   )Z
ValueErroropen_processr   r   r   Z
start_soonr   r   ZsendZacloseZwaitZ
returncoder   r   r)   r	   )r#   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r7   ZprocessZtgZoutputZerrorsr6   s   &$$$$$$$$$$$$$$$     @r1   run_processr9      s    v3 3 U.ABB!d#+!     
/3Tl$&&&"~~~lGNNA>~~~lGNNA>}}}mm((///mm**,,,,,.   '&# < %NFF##q( c7+=+=!>QWXXGT#w/A/A%BFFSSE" ' 0,  '&&&#   s   AH)
GH)G!H)H:G$;H>AG/	 .G/	/G/	7G/	G'!G/	7G)8G/	G+G/	HG- H$H)/H0H)AH)!H)$H'G/	)G/	+G/	-H/H5G86
HHHH)H&	H
H&	H&	!H)c               sT    V ^8  d   QhRRRRRRRRRRR	R
RRRRRRRRRRRRRRRRRR/# )r"   r#   r$   r   r%   r   r   r   r'   r   r(   r   r   r   r)   r   r&   r   r*   r   r+   r   r    r,   r!   r-   r   r.   r/   r0   r1   r2   r2      s     J J6J  J !	J
 !J 
J 
"J J J J J J J -J J  !Jr3   c               s   "   / pV
e   WR&   Ve   WR&   Ve   WR&   V^ 8  d   WR&   \        4       P                  ! V 3RVRVRVR	VR
VRVRVRVRV	/	VB G Rj  xL
 #  L5i)a  
Start an external command in a subprocess.

.. seealso:: :class:`subprocess.Popen`

:param command: either a string to pass to the shell, or an iterable of strings
    containing the executable name or path and its arguments
:param stdin: one of :data:`subprocess.PIPE`, :data:`subprocess.DEVNULL`, a
    file-like object, or ``None``
:param stdout: one of :data:`subprocess.PIPE`, :data:`subprocess.DEVNULL`,
    a file-like object, or ``None``
:param stderr: one of :data:`subprocess.PIPE`, :data:`subprocess.DEVNULL`,
    :data:`subprocess.STDOUT`, a file-like object, or ``None``
:param cwd: If not ``None``, the working directory is changed before executing
:param env: If env is not ``None``, it must be a mapping that defines the
    environment variables for the new process
:param creationflags: flags that can be used to control the creation of the
    subprocess (see :class:`subprocess.Popen` for the specifics)
:param startupinfo: an instance of :class:`subprocess.STARTUPINFO` that can be used
    to specify process startup parameters (Windows only)
:param start_new_session: if ``true`` the setsid() system call will be made in the
    child process prior to the execution of the subprocess. (POSIX only)
:param pass_fds: sequence of file descriptors to keep open between the parent and
    child processes. (POSIX only)
:param user: effective user to run the process as (POSIX only)
:param group: effective group to run the process as (POSIX only)
:param extra_groups: supplementary groups to set in the subprocess (POSIX only)
:param umask: if not negative, this umask is applied in the child process before
    running the given command (POSIX only)
:return: an asynchronous process object

Nr   r   r    r!   r   r   r   r   r   r   r   r   r   )r   r8   )r#   r   r   r   r   r   r   r   r   r   r   r   r    r!   Zkwargss   &$$$$$$$$$$$$$ r1   r8   r8      s     b  Fvw!&~zw"$11  	
     $ ,     s   AAAA)i   i
   r.   i)%__conditional_annotations__Z
__future__r    ZsysZcollections.abcr   r   r   r   Zior   Zosr   Z
subprocessr   r   r	   Ztypingr
   r   r   r   Zabcr   Z
_eventloopr   Z_tasksr   Zversion_infor   Ztyping_extensionsZstrZbytesr   Z__annotations__r9   r8   )r:   s   @r1   <module>r;      s   " " 
 F F   A A ' '  ) %w +!#uo?P"PQ	 QgT gT #'	gT
 $(gT $(gT gT "&gT %)gT gT gT $gT !gT "gT #gT  04!gT" #gTTJ #'J $(	J
 $(J "&J %)J J J $J !J "J #J 04J J Jr3   