+
     h  c                   s    ^ RI t ^ RIHtHtHtHt ^RIHt ^RIH	t	 ]'       d   ^RI
Ht  ! R R] P                  4      tR# )i    N)IOTYPE_CHECKINGAnyList)AnsiDecoder)Text)Consolec                   s   a  ] tR t^t o RtV 3R lR lt]V 3R lR l4       tV 3R lR ltV 3R lR	 lt	V 3R
 lR lt
V 3R lR ltRtV tR# )	FileProxyzAWraps a file (e.g. sys.stdout) and redirects writes to a console.c                s8   < V ^8  d   QhRRRS[ S[,          RR/# )   consoler   filereturnNr    strZformat__classdict__   "@/usr/lib/python3.14/site-packages/pip/_vendor/rich/file_proxy.py__annotate__FileProxy.__annotate__   s&     , ,	 ,C ,T ,    c                sJ    Wn         W n        . V n        \        4       V n        R # N)_FileProxy__console_FileProxy__file_FileProxy__bufferr   _FileProxy__ansi_decoder)selfr	   r
   s   &&&r   __init__ZFileProxy.__init__   s     #%)mr   c                s0   < V ^8  d   QhRS[ S[,          /# r   r   r   r   r   r   r   r      s      2c7 r   c                s    V P                   # )zGet proxied file.)r   r      &r   rich_proxied_fileZFileProxy.rich_proxied_file   s     {{r   c                &   < V ^8  d   QhRS[ RS[/# )r   namer   )r   r   r   r   r   r   r      s     * * * *r   c                s.    \        V P                  V4      # r   )Zgetattrr   )r   r!   s   &&r   __getattr__ZFileProxy.__getattr__   s    t{{D))r   c                r    )r   textr   )r   intr   r   r   r   r      s      # # r   c                s`  a  \        V\        4      '       g"   \        R \        V4      P                   24      hS P
                  p. pV'       dh   VP                  R4      w  rEpV'       d:   VP                  RP                  V4      V,           4       VP                  4        K]  VP                  V4        V'       dU   S P                  pV;_uu_ 4        \        R4      P                  V 3R lV 4       4      pVP                  V4       RRR4       \        V4      #   + '       g   i     L; i)z"write() argument must be str, not Z
 c              3   sZ   <"   T F   pSP                   P                  V4      x  K"  	  R # 5ir   )r   Zdecode_line)Z.0liner   s   & r   Z	<genexpr>Z"FileProxy.write.<locals>.<genexpr>,   s(      )FKdD''33D99es   (+N)Z
isinstancer   Z	TypeErrorZtype__name__r   Z	partitionZappendjoinZclearr   r   printZlen)r   r#   ZbufferZlinesr&   Znew_liner	   outputs   f&      r   writeZFileProxy.write   s    $$$@dATAT@UVWW#'>>$#7 DDRWWV_t34d#nnGd )FK)  f%	 
 4y s   6DD-	c                s   < V ^8  d   QhRR/# )r   r   N r   r   r   r   r   2   s      t r   c                s    R P                  V P                  4      pV'       d   V P                  P                  V4       V P                  R R# )r%   :NNNN)r(   r   r   r)   )r   r*   s   & r   flushZFileProxy.flush2   s5    'NN  (MM!r   c                s    < V ^8  d   QhRS[ /# r   )r$   r   r   r   r   r   8   s     $ $ $r   c                s6    V P                   P                  4       # r   )r   filenor   r   r   r.   ZFileProxy.fileno8   s    {{!!##r   )Z__ansi_decoderZ__bufferZ	__consoleZ__fileN)r'   Z
__module__Z__qualname__Z__firstlineno__Z__doc__r   Zpropertyr   r"   r+   r-   r.   Z__static_attributes__Z__classdictcell__)r   s   @r   r   r      sN     K, ,  * * , $ $r   r   )ZioZtypingr    r   r   r   Zansir   r#   r   r	   r   Z
TextIOBaser   r,   r   r   <module>r/      s*    	 / /   .$ .$r   