
    ܈h$[                    F   S SK Jr  S SKrS SKrS SKrS SKJrJrJrJ	r	J
r
  S SKJr  S SKJr  S SKJr  S SKJrJrJrJrJrJrJrJr  SS	KJr  SS
KJr  \(       a  S SKJr  S SKJ r J!r!J"r"J#r#  O\$=r"=r =r!r# " S S\\\   5      r%\      S                 SS jj5       r&\       S                 SS jj5       r&       S                 SS jjr&SS jr'\" SS9 " S S\S   5      5       r( " S S5      r)\RT                  " \)5        g)     )annotationsN)AsyncIteratorCallableIterableIteratorSequence)	dataclass)partial)PathLike)IOTYPE_CHECKINGAnyAnyStrClassVarFinalGenericoverload   )	to_thread)AsyncResource)
ModuleType)OpenBinaryModeOpenTextModeReadableBufferWriteableBufferc                  N   \ rS rSrSrSS jrSS jr\SS j5       rSS jr	SS jr
SS S jjrSS!S	 jjrS"S
 jrS#S jrS$S jrS$S jr\S%S j5       r\S&S j5       rS'S jr\      S(S j5       r\S)S j5       rS*S jrS+S,S jjr\R,                  4S-S jjrS.S jrSS jrSrg)/	AsyncFile&   au  
An asynchronous file object.

This class wraps a standard file object and provides async friendly versions of the
following blocking methods (where available on the original file object):

* read
* read1
* readline
* readlines
* readinto
* readinto1
* write
* writelines
* truncate
* seek
* tell
* flush

All other methods are directly passed through.

This class supports the asynchronous context manager protocol which closes the
underlying file at the end of the context block.

This class also supports asynchronous iteration::

    async with await open_file(...) as f:
        async for line in f:
            print(line)
c                    Xl         g N_fp)selffps     ;D:\TimeStamps\venv\Lib\site-packages\anyio/_core/_fileio.py__init__AsyncFile.__init__F   s        c                .    [        U R                  U5      $ r    )getattrr"   r#   names     r%   __getattr__AsyncFile.__getattr__I   s    txx&&r(   c                    U R                   $ )zThe wrapped file object.r!   r#   s    r%   wrappedAsyncFile.wrappedL   s     xxr(   c               `   #     U R                  5       I S h  vN nU(       a  U7v   Og M(   N7fr    )readline)r#   lines     r%   	__aiter__AsyncFile.__aiter__Q   s)     (D
 (s   .,.c                r   #    [         R                  " U R                  R                  5      I S h  vN $  N7fr    )r   run_syncr"   closer0   s    r%   acloseAsyncFile.acloseY   $     ''7777   .757c                t   #    [         R                  " U R                  R                  U5      I S h  vN $  N7fr    )r   r9   r"   readr#   sizes     r%   r@   AsyncFile.read\   s&     ''t<<<<   /868c                t   #    [         R                  " U R                  R                  U5      I S h  vN $  N7fr    )r   r9   r"   read1rA   s     r%   rF   AsyncFile.read1_   s&     ''====rD   c                r   #    [         R                  " U R                  R                  5      I S h  vN $  N7fr    )r   r9   r"   r4   r0   s    r%   r4   AsyncFile.readlineb   s&     ''(9(9::::r>   c                r   #    [         R                  " U R                  R                  5      I S h  vN $  N7fr    )r   r9   r"   	readlinesr0   s    r%   rK   AsyncFile.readlinese   s&     ''(:(:;;;;r>   c                t   #    [         R                  " U R                  R                  U5      I S h  vN $  N7fr    )r   r9   r"   readintor#   bs     r%   rN   AsyncFile.readintoh   s(     ''(9(91====rD   c                t   #    [         R                  " U R                  R                  U5      I S h  vN $  N7fr    )r   r9   r"   	readinto1rO   s     r%   rS   AsyncFile.readinto1k   s(     ''(:(:A>>>>rD   c                   #    g 7fr     rO   s     r%   writeAsyncFile.writen   s     GJ   c                   #    g 7fr    rV   rO   s     r%   rW   rX   q   s     :=rY   c                t   #    [         R                  " U R                  R                  U5      I S h  vN $  N7fr    )r   r9   r"   rW   rO   s     r%   rW   rX   t   s&     ''::::rD   c                   #    g 7fr    rV   r#   liness     r%   
writelinesAsyncFile.writelinesw   s
      rY   c                   #    g 7fr    rV   r]   s     r%   r_   r`   |   s     NQrY   c                t   #    [         R                  " U R                  R                  U5      I S h  vN $  N7fr    )r   r9   r"   r_   r]   s     r%   r_   r`      s(     ''(;(;UCCCCrD   Nc                t   #    [         R                  " U R                  R                  U5      I S h  vN $  N7fr    )r   r9   r"   truncaterA   s     r%   rd   AsyncFile.truncate   s(     ''(9(94@@@@rD   c                t   #    [         R                  " U R                  R                  X5      I S h  vN $  N7fr    )r   r9   r"   seek)r#   offsetwhences      r%   rg   AsyncFile.seek   s&     ''vFFFFrD   c                r   #    [         R                  " U R                  R                  5      I S h  vN $  N7fr    )r   r9   r"   tellr0   s    r%   rl   AsyncFile.tell   s$     ''6666r>   c                r   #    [         R                  " U R                  R                  5      I S h  vN $  N7fr    )r   r9   r"   flushr0   s    r%   ro   AsyncFile.flush   r=   r>   r!   )r$   
IO[AnyStr]returnNone)r,   strrr   object)rr   rq   )rr   zAsyncIterator[AnyStr]rr   rs   ))rB   intrr   r   )r#   AsyncFile[bytes]rB   rx   rr   bytes)rr   r   )rr   zlist[AnyStr])r#   ry   rP   r   rr   rx   )r#   ry   rP   r   rr   rx   )r#   AsyncFile[str]rP   rt   rr   rx   )rP   zReadableBuffer | strrr   rx   )r#   ry   r^   zIterable[ReadableBuffer]rr   rs   )r#   r{   r^   zIterable[str]rr   rs   )r^   z(Iterable[ReadableBuffer] | Iterable[str]rr   rs   r    )rB   
int | Nonerr   rx   )rh   rx   ri   r|   rr   rx   rr   rx   )__name__
__module____qualname____firstlineno____doc__r&   r-   propertyr1   r6   r;   r@   rF   r4   rK   rN   rS   r   rW   r_   rd   osSEEK_SETrg   rl   ro   __static_attributes__rV   r(   r%   r   r   &   s    >'  8=>;<>? J J= =; '?	  Q QDA <>;; G78r(   r   c                   #    g 7fr    rV   filemode	bufferingencodingerrorsnewlineclosefdopeners           r%   	open_filer      s
      rY   c                   #    g 7fr    rV   r   s           r%   r   r      s
      rY   c                p   #    [         R                  " [        XX#XEXg5	      I Sh  vN n[        U5      $  N7f)z
Open a file asynchronously.

The arguments are exactly the same as for the builtin :func:`open`.

:return: an asynchronous file object

N)r   r9   openr   )	r   r   r   r   r   r   r   r   r$   s	            r%   r   r      s8     $ !!d)v 
B R=
s   "646c                    [        U 5      $ )z
Wrap an existing file as an asynchronous file.

:param file: an existing file-like object
:return: an asynchronous file object

)r   )r   s    r%   	wrap_filer      s     T?r(   F)eqc                  *    \ rS rSr% S\S'   SS jrSrg)_PathIterator   zIterator[PathLike[str]]iteratorc                   #    [         R                  " [        U R                  S SS9I S h  vN nUc  [        S e[        U5      $  N7fNTabandon_on_cancel)r   r9   nextr   StopAsyncIterationPath)r#   nextvals     r%   	__anext___PathIterator.__anext__   sE     !**$--
 
 ?$$.G}
s   )AAArV   Nrr   r   )r~   r   r   r   __annotations__r   r   rV   r(   r%   r   r      s    %%r(   r   r   c                  b   \ rS rSr% SrSrS\S'   SiS jrSjS jrSjS jr	SjS	 jr
SkS
 jrSlS jrSmS jrSnS jrSnS jrSnS jrSnS jrSoS jrSoS jr\SpS j5       r\SjS j5       r\SjS j5       r\SjS j5       r\SqS j5       r\SrS j5       r\SjS j5       r\SjS j5       r\SsS j5       r\SjS j5       rSrS jrSjS jr SjS jr!\"RF                  S :  aB  \$RJ                  RL                  r&S!\S"'   \'StS# j5       r(S$S%.     SuS& jjr)S$S%.     SuS' jjr*OSvS( jr*\"RF                  S):  a:  \SwS* j5       r+S+S,S-.       SxS. jjr,S+S,S-.       SyS/ jjr-SzS0 jr.    S{S1 jr/S|S2 jr0S+S3.S}S4 jjr1\'SrS5 j5       r2S~S6 jr3SrS7 jr4SS8 jr5SjS9 jr6    SS: jr7\'SrS; j5       r8S~S< jr9S~S= jr:S~S> jr;S~S? jr<S~S@ jr=S~SA jr>\"RF                  SB:  a  S~SC jr?S~SD jr@S~SE jrAS~SF jrBS~SG jrCSSH jrDSSI jrESSJ jrFSSK jrG S       SSL jjrH\I    S           SSM jj5       rJ\I     S           SSN jj5       rJ     S           SSO jjrJSjSP jrKSkSQ jrL S     SSR jjrM\"RF                  SB:  a  S,SS.     SST jjrNOSoSU jrNSrSV jrOSSW jrPSSX jrQSSSY jjrRSSZ jrSSS[ jrTSS\ jrUS+S3.SS] jjrV S     SS^ jjrWSSS_ jjrXSSS` jjrY\"RF                  SB:  a     S       SSa jjrZSSb jr[SSc jr\SSd jr]SSe jr^SSf jr_   S         SSg jjr`Shrag$)r      a
  
An asynchronous version of :class:`pathlib.Path`.

This class cannot be substituted for :class:`pathlib.Path` or
:class:`pathlib.PurePath`, but it is compatible with the :class:`os.PathLike`
interface.

It implements the Python 3.10 version of :class:`pathlib.Path` interface, except for
the deprecated :meth:`~pathlib.Path.link_to` method.

Some methods may be unavailable or have limited functionality, based on the Python
version:

* :meth:`~pathlib.Path.copy` (available on Python 3.14 or later)
* :meth:`~pathlib.Path.copy_into` (available on Python 3.14 or later)
* :meth:`~pathlib.Path.from_uri` (available on Python 3.13 or later)
* :meth:`~pathlib.PurePath.full_match` (available on Python 3.13 or later)
* :attr:`~pathlib.Path.info` (available on Python 3.14 or later)
* :meth:`~pathlib.Path.is_junction` (available on Python 3.12 or later)
* :meth:`~pathlib.PurePath.match` (the ``case_sensitive`` parameter is only
  available on Python 3.13 or later)
* :meth:`~pathlib.Path.move` (available on Python 3.14 or later)
* :meth:`~pathlib.Path.move_into` (available on Python 3.14 or later)
* :meth:`~pathlib.PurePath.relative_to` (the ``walk_up`` parameter is only available
  on Python 3.12 or later)
* :meth:`~pathlib.Path.walk` (available on Python 3.12 or later)

Any methods that do disk I/O need to be awaited on. These methods are:

* :meth:`~pathlib.Path.absolute`
* :meth:`~pathlib.Path.chmod`
* :meth:`~pathlib.Path.cwd`
* :meth:`~pathlib.Path.exists`
* :meth:`~pathlib.Path.expanduser`
* :meth:`~pathlib.Path.group`
* :meth:`~pathlib.Path.hardlink_to`
* :meth:`~pathlib.Path.home`
* :meth:`~pathlib.Path.is_block_device`
* :meth:`~pathlib.Path.is_char_device`
* :meth:`~pathlib.Path.is_dir`
* :meth:`~pathlib.Path.is_fifo`
* :meth:`~pathlib.Path.is_file`
* :meth:`~pathlib.Path.is_junction`
* :meth:`~pathlib.Path.is_mount`
* :meth:`~pathlib.Path.is_socket`
* :meth:`~pathlib.Path.is_symlink`
* :meth:`~pathlib.Path.lchmod`
* :meth:`~pathlib.Path.lstat`
* :meth:`~pathlib.Path.mkdir`
* :meth:`~pathlib.Path.open`
* :meth:`~pathlib.Path.owner`
* :meth:`~pathlib.Path.read_bytes`
* :meth:`~pathlib.Path.read_text`
* :meth:`~pathlib.Path.readlink`
* :meth:`~pathlib.Path.rename`
* :meth:`~pathlib.Path.replace`
* :meth:`~pathlib.Path.resolve`
* :meth:`~pathlib.Path.rmdir`
* :meth:`~pathlib.Path.samefile`
* :meth:`~pathlib.Path.stat`
* :meth:`~pathlib.Path.symlink_to`
* :meth:`~pathlib.Path.touch`
* :meth:`~pathlib.Path.unlink`
* :meth:`~pathlib.Path.walk`
* :meth:`~pathlib.Path.write_bytes`
* :meth:`~pathlib.Path.write_text`

Additionally, the following methods return an async iterator yielding
:class:`~.Path` objects:

* :meth:`~pathlib.Path.glob`
* :meth:`~pathlib.Path.iterdir`
* :meth:`~pathlib.Path.rglob`
)_path__weakref__r   r   c                4    [         R                  " U6 U l        g r    )pathlibr   r   r#   argss     r%   r&   Path.__init__*  s    *1,,*=
r(   c                6    U R                   R                  5       $ r    )r   
__fspath__r0   s    r%   r   Path.__fspath__-  s    zz$$&&r(   c                6    U R                   R                  5       $ r    )r   __str__r0   s    r%   r   Path.__str__0  s    zz!!##r(   c                X    U R                   R                   SU R                  5       < S3$ )N())	__class__r~   as_posixr0   s    r%   __repr__Path.__repr__3  s'    ..))*!DMMO+>a@@r(   c                6    U R                   R                  5       $ r    )r   	__bytes__r0   s    r%   r   Path.__bytes__6  s    zz##%%r(   c                6    U R                   R                  5       $ r    )r   __hash__r0   s    r%   r   Path.__hash__9      zz""$$r(   c                ~    [        U[        5      (       a  UR                  OUnU R                  R                  U5      $ r    )
isinstancer   r   __eq__r#   othertargets      r%   r   Path.__eq__<  .     *5$ 7 7Uzz  ((r(   c                ~    [        U[        5      (       a  UR                  OUnU R                  R                  U5      $ r    )r   r   r   __lt__r   s      r%   r   Path.__lt__@  r   r(   c                ~    [        U[        5      (       a  UR                  OUnU R                  R                  U5      $ r    )r   r   r   __le__r   s      r%   r   Path.__le__D  r   r(   c                ~    [        U[        5      (       a  UR                  OUnU R                  R                  U5      $ r    )r   r   r   __gt__r   s      r%   r   Path.__gt__H  r   r(   c                ~    [        U[        5      (       a  UR                  OUnU R                  R                  U5      $ r    )r   r   r   __ge__r   s      r%   r   Path.__ge__L  r   r(   c                2    [        U R                  U-  5      $ r    )r   r   r#   r   s     r%   __truediv__Path.__truediv__P  s    DJJ&''r(   c                    [        U5      U -  $ r    r   r   s     r%   __rtruediv__Path.__rtruediv__S  s    E{T!!r(   c                .    U R                   R                  $ r    )r   partsr0   s    r%   r   
Path.partsV      zzr(   c                .    U R                   R                  $ r    )r   driver0   s    r%   r   
Path.driveZ  r   r(   c                .    U R                   R                  $ r    )r   rootr0   s    r%   r   	Path.root^      zzr(   c                .    U R                   R                  $ r    )r   anchorr0   s    r%   r   Path.anchorb      zz   r(   c                N    [        S U R                  R                   5       5      $ )Nc              3  8   #    U  H  n[        U5      v   M     g 7fr    r   ).0ps     r%   	<genexpr>Path.parents.<locals>.<genexpr>h  s     9&8T!WW&8s   )tupler   parentsr0   s    r%   r   Path.parentsf  s    9djj&8&8999r(   c                @    [        U R                  R                  5      $ r    )r   r   parentr0   s    r%   r   Path.parentj  s    DJJ%%&&r(   c                .    U R                   R                  $ r    )r   r,   r0   s    r%   r,   	Path.namen  r   r(   c                .    U R                   R                  $ r    )r   suffixr0   s    r%   r   Path.suffixr  r   r(   c                .    U R                   R                  $ r    )r   suffixesr0   s    r%   r  Path.suffixesv  s    zz"""r(   c                .    U R                   R                  $ r    )r   stemr0   s    r%   r  	Path.stemz  r   r(   c                   #    [         R                  " U R                  R                  5      I S h  vN n[	        U5      $  N7fr    )r   r9   r   absoluter   )r#   paths     r%   r  Path.absolute~  s1     ''

(;(;<<Dz =s   .AA Ac                6    U R                   R                  5       $ r    )r   r   r0   s    r%   r   Path.as_posix  r   r(   c                6    U R                   R                  5       $ r    )r   as_urir0   s    r%   r  Path.as_uri  s    zz  ""r(         zClassVar[ModuleType]parserc                R    [        [        R                   R                  U5      5      $ r    )r   r   from_uri)clsuris     r%   r  Path.from_uri  s    --c233r(   Ncase_sensitivec               4    U R                   R                  XS9$ Nr  )r   
full_matchr#   path_patternr  s      r%   r  Path.full_match  s     ::(((UUr(   c               4    U R                   R                  XS9$ r  r   matchr  s      r%   r#  
Path.match  s     ::##L#PPr(   c                8    U R                   R                  U5      $ r    r"  )r#   r  s     r%   r#  r$    s    ::##L11r(   )r     c                .    U R                   R                  $ r    )r   infor0   s    r%   r(  	Path.info  s    ::??"r(   TFfollow_symlinkspreserve_metadatac                  #    [        U R                  R                  UUS9n[        [        R
                  " U[        R                  " U5      5      I S h  vN 5      $  N7fNr*  )r
   r   copyr   r   r9   r   )r#   r   r+  r,  funcs        r%   r/  	Path.copy  sK      

 /"3D
 i00w||F7KLLMML   AA A	A c                  #    [        U R                  R                  UUS9n[        [        R
                  " U[        R                  " U5      5      I S h  vN 5      $  N7fr.  )r
   r   	copy_intor   r   r9   r   )r#   
target_dirr+  r,  r0  s        r%   r4  Path.copy_into  sM      

$$ /"3D
 i00w||J7OPPQQPr2  c                   #    [         R                  " U5      n[        [        R                  " U R                  R
                  U5      I S h  vN 5      $  N7fr    )r   r   r   r9   r   mover#   r   s     r%   r8  	Path.move  s9     \\&)Fi00&IIJJIs   A
AA	Ac                   #    [        [        R                  " U R                  R                  U5      I S h  vN 5      $  N7fr    )r   r   r9   r   	move_into)r#   r5  s     r%   r<  Path.move_into  s/      i001E1EzRRSSRs   4A?	Ac                H     U R                  U5        g! [         a     gf = f)NTF)relative_to
ValueErrorr   s     r%   is_relative_toPath.is_relative_to  s*    	U# 		s    
!!r+  c                  #    [        [        R                  US9n[        R                  " X0R
                  U5      I S h  vN $  N7f)NrC  )r
   r   chmodr   r9   r   )r#   r   r+  r0  s       r%   rE  
Path.chmod  s2     rxxA''jj$????s   =AA Ac                   #    [         R                  " [        R                  R                  5      I S h  vN nU " U5      $  N7fr    )r   r9   r   r   cwd)r  r	  s     r%   rH  Path.cwd  s1     ''(8(8994y :   2AAAc                p   #    [         R                  " U R                  R                  SS9I S h  vN $  N7fr   )r   r9   r   existsr0   s    r%   rL  Path.exists  (     ''

(9(9TRRRR   -646c                   #    [        [        R                  " U R                  R                  SS9I S h  vN 5      $  N7fr   )r   r   r9   r   
expanduserr0   s    r%   rQ  Path.expanduser  s2     $$TZZ%:%:dSS
 	
Ss   2?=	?c                N    U R                   R                  U5      n[        U5      $ r    )r   globr   r#   patterngens      r%   rT  	Path.glob  s    jjoog&S!!r(   c                p   #    [         R                  " U R                  R                  SS9I S h  vN $  N7fr   )r   r9   r   groupr0   s    r%   rZ  
Path.group  (     ''

(8(8DQQQQrO  c                   #    [        U[        5      (       a  UR                  n[        R                  " [
        R                  X5      I S h  vN   g  N7fr    )r   r   r   r   r9   r   linkr9  s     r%   hardlink_toPath.hardlink_to  s7      fd##\\F  &777s   A
AAAc                   #    [         R                  " [        R                  R                  5      I S h  vN nU " U5      $  N7fr    )r   r9   r   r   home)r  	home_paths     r%   rb  	Path.home  s2     #,,W\\->->??	9~ @rJ  c                6    U R                   R                  5       $ r    )r   is_absoluter0   s    r%   rf  Path.is_absolute      zz%%''r(   c                p   #    [         R                  " U R                  R                  SS9I S h  vN $  N7fr   )r   r9   r   is_block_devicer0   s    r%   rj  Path.is_block_device  s1     ''JJ&&$
 
 	
 
rO  c                p   #    [         R                  " U R                  R                  SS9I S h  vN $  N7fr   )r   r9   r   is_char_devicer0   s    r%   rm  Path.is_char_device  s1     ''JJ%%
 
 	
 
rO  c                p   #    [         R                  " U R                  R                  SS9I S h  vN $  N7fr   )r   r9   r   is_dirr0   s    r%   rp  Path.is_dir  rN  rO  c                p   #    [         R                  " U R                  R                  SS9I S h  vN $  N7fr   )r   r9   r   is_fifor0   s    r%   rs  Path.is_fifo  (     ''

(:(:dSSSSrO  c                p   #    [         R                  " U R                  R                  SS9I S h  vN $  N7fr   )r   r9   r   is_filer0   s    r%   rw  Path.is_file	  ru  rO  )r     c                r   #    [         R                  " U R                  R                  5      I S h  vN $  N7fr    )r   r9   r   is_junctionr0   s    r%   r{  Path.is_junction  s&     "++DJJ,B,BCCCCr>   c                   #    [         R                  " [        R                  R                  U R
                  SS9I S h  vN $  N7fr   )r   r9   r   r	  ismountr   r0   s    r%   is_mountPath.is_mount  s5     ''GGOOTZZ4
 
 	
 
s   <AAAc                6    U R                   R                  5       $ r    )r   is_reservedr0   s    r%   r  Path.is_reserved  rh  r(   c                p   #    [         R                  " U R                  R                  SS9I S h  vN $  N7fr   )r   r9   r   	is_socketr0   s    r%   r  Path.is_socket  s)     ''

(<(<PTUUUUrO  c                p   #    [         R                  " U R                  R                  SS9I S h  vN $  N7fr   )r   r9   r   
is_symlinkr0   s    r%   r  Path.is_symlink  s)     ''

(=(=QUVVVVrO  c               
  #    [         R                  S:  a  U R                  R                  5       O0[        R
                  " U R                  R                  SS9I S h  vN n[        U5        S h  vN nU7v   M   N N
 g 7f)Nr  Tr   )sysversion_infor   iterdirr   r9   r   )r#   rW  r	  s      r%   r  Path.iterdir  sn      ') JJ  ))$***<*<PTUU 	
 (, 	$J V	,s6   ABA=B-B1A?2B5	B?BBc                F    [        U R                  R                  " U6 5      $ r    )r   r   joinpathr   s     r%   r  Path.joinpath(  s    DJJ''.//r(   c                v   #    [         R                  " U R                  R                  U5      I S h  vN   g  N7fr    )r   r9   r   lchmod)r#   r   s     r%   r  Path.lchmod+  s%       !2!2D999   /979c                p   #    [         R                  " U R                  R                  SS9I S h  vN $  N7fr   )r   r9   r   lstatr0   s    r%   r  
Path.lstat.  r\  rO  c                x   #    [         R                  " U R                  R                  XU5      I S h  vN   g  N7fr    )r   r9   r   mkdir)r#   r   r   exist_oks       r%   r  
Path.mkdir1  s)        !1!14(KKKs   0:8:c                   #    g 7fr    rV   r#   r   r   r   r   r   s         r%   r   	Path.open6  s
      rY   c                   #    g 7fr    rV   r  s         r%   r   r  @  s
      rY   c                   #    [         R                  " U R                  R                  XX4U5      I S h  vN n[	        U5      $  N7fr    )r   r9   r   r   r   )r#   r   r   r   r   r   r$   s          r%   r   r  J  s>      %%JJOOTh
 
 }
s   1AAAc                p   #    [         R                  " U R                  R                  SS9I S h  vN $  N7fr   )r   r9   r   ownerr0   s    r%   r  
Path.ownerW  r\  rO  c                r   #    [         R                  " U R                  R                  5      I S h  vN $  N7fr    )r   r9   r   
read_bytesr0   s    r%   r  Path.read_bytesZ  s&     ''

(=(=>>>>r>   c                t   #    [         R                  " U R                  R                  X5      I S h  vN $  N7fr    )r   r9   r   	read_text)r#   r   r   s      r%   r  Path.read_text]  s*      ''

(<(<hOOOOrD   )walk_upc                   U Vs/ s H  n[         R                  " U5      PM     nn[        U R                  R                  " USU065      $ s  snf )Nr  )r   r   r   r?  )r#   r  r   otherss       r%   r?  Path.relative_tod  sE     8==uegll5)uF=

..HHII >s    Ac                F    [        U R                  R                  " U6 5      $ r    )r   r   r?  r   s     r%   r?  r  m  s    

..677r(   c                   #    [         R                  " [        R                  U R                  5      I S h  vN n[        U5      $  N7fr    )r   r9   r   readlinkr   r   r9  s     r%   r  Path.readlinkp  s2      ))"++tzzBBF| Cs   3AAAc                   #    [        U[        5      (       a  UR                  n[        R                  " U R                  R
                  U5      I S h  vN   [        U5      $  N7fr    )r   r   r   r   r9   renamer9  s     r%   r  Path.renamet  sJ     fd##\\F  !2!2F;;;F| 	<   AA$A"A$c                   #    [        U[        5      (       a  UR                  n[        R                  " U R                  R
                  U5      I S h  vN   [        U5      $  N7fr    )r   r   r   r   r9   replacer9  s     r%   r  Path.replace{  sJ     fd##\\F  !3!3V<<<F| 	=r  c                   #    [        U R                  R                  US9n[        [        R
                  " USS9I S h  vN 5      $  N7f)N)strictTr   )r
   r   resolver   r   r9   )r#   r  r0  s      r%   r  Path.resolve  s9     tzz))&9),,TTJJKKJs   <A	A	A	c                N    U R                   R                  U5      n[        U5      $ r    )r   rglobr   rU  s      r%   r  
Path.rglob  s!    jjw'S!!r(   c                t   #    [         R                  " U R                  R                  5      I S h  vN   g  N7fr    )r   r9   r   rmdirr0   s    r%   r  
Path.rmdir  s#       !1!1222s   .868c                   #    [        U[        5      (       a  UR                  n[        R                  " U R                  R
                  USS9I S h  vN $  N7fr   )r   r   r   r   r9   samefile)r#   
other_paths     r%   r  Path.samefile  sK     j$''#))J''JJt
 
 	
 
s   AAAAc                  #    [        [        R                  US9n[        R                  " X R
                  SS9I S h  vN $  N7f)NrC  Tr   )r
   r   statr   r9   r   )r#   r+  r0  s      r%   r  	Path.stat  s2     rww@''jjDQQQQs   ;AAAc                   #    [        U[        5      (       a  UR                  n[        R                  " U R                  R
                  X5      I S h  vN   g  N7fr    )r   r   r   r   r9   
symlink_to)r#   r   target_is_directorys      r%   r  Path.symlink_to  s=     
 fd##\\F  !6!6TTTs   AAAAc                v   #    [         R                  " U R                  R                  X5      I S h  vN   g  N7fr    )r   r9   r   touch)r#   r   r  s      r%   r  
Path.touch  s%       !1!14BBBr  c                   #     [         R                  " U R                  R                  5      I S h  vN   g  N! [         a    U(       d  e  g f = f7fr    )r   r9   r   unlinkFileNotFoundError)r#   
missing_oks     r%   r  Path.unlink  sA     	$$TZZ%6%6777  	 	s1   A-9 79 A9 AAAAc                  ^	#    SU	4S jjnU R                   R                  XU5      m	 [        R                  " U5      I S h  vN nUc  g Uu  pgn[	        U5      Xx47v   M9   N7f)Nc                 <   >  [        T 5      $ ! [         a     g f = fr    )r   StopIteration)rW  s   r%   get_next_value!Path.walk.<locals>.get_next_value  s$     9$$   s   
 
)rr   z0tuple[pathlib.Path, list[str], list[str]] | None)r   walkr   r9   r   )
r#   top_downon_errorr+  r  valuer   dirspathsrW  s
            @r%   r  	Path.walk  s`       **//(oFC'00@@=$)!E4j$-- @s   ?A$A" A$c                J    [        U R                  R                  U5      5      $ r    )r   r   	with_namer+   s     r%   r  Path.with_name  s    DJJ((.//r(   c                v    [        U R                  R                  XR                  R                  -   5      5      $ r    )r   r   r  r   )r#   r  s     r%   	with_stemPath.with_stem  s)    DJJ((

0A0A)ABCCr(   c                J    [        U R                  R                  U5      5      $ r    )r   r   with_suffix)r#   r   s     r%   r  Path.with_suffix  s    DJJ**6233r(   c                    [        U6 $ r    r   )r#   pathsegmentss     r%   with_segmentsPath.with_segments  s    \""r(   c                t   #    [         R                  " U R                  R                  U5      I S h  vN $  N7fr    )r   r9   r   write_bytes)r#   datas     r%   r  Path.write_bytes  s(     ''

(>(>EEEErD   c                l   ^ ^^^^#    SUUUUU 4S jjn[         R                  " U5      I S h  vN $  N7f)Nc                    > TR                   R                  STTTS9 n U R                  T5      sS S S 5        $ ! , (       d  f       g = f)Nw)r   r   r   )r   r   rW   )r$   r  r   r   r   r#   s    r%   sync_write_text(Path.write_text.<locals>.sync_write_text  s?    hvw ! xx~  s	   9
Ar}   )r   r9   )r#   r  r   r   r   r  s   ````` r%   
write_textPath.write_text  s)     	& 	& ''8888s   &424)r   )r   str | PathLike[str]rr   rs   )rr   rt   )rr   rz   r}   )r   ru   rr   bool)r   zpathlib.PurePath | Pathrr   r  )r   r  rr   r   )rr   ztuple[str, ...])rr   zSequence[Path]r   )rr   z	list[str])r  rt   rr   r   )r  rt   r  zbool | Nonerr   r  )r  rt   rr   r  )rr   r   )r   str | os.PathLike[str]r+  r  r,  r  rr   r   )r5  r  r+  r  r,  r  rr   r   )r   r  rr   r   )r5  r  rr   r   )r   r  rr   r  )r   rx   r+  r  rr   rs   )rr   r  )rV  rt   rr   AsyncIterator[Path])r   -str | bytes | PathLike[str] | PathLike[bytes]rr   rs   )rr   r  )r   r  rr   r   )r   rx   rr   rs   )rr   os.stat_result)i  FF)r   rx   r   r  r  r  rr   rs   )....)r   r   r   rx   r   
str | Noner   r  r   r  rr   ry   ).....)r   r   r   rx   r   r  r   r  r   r  rr   r{   )rrw   NNN)r   rt   r   rx   r   r  r   r  r   r  rr   AsyncFile[Any])NN)r   r  r   r  rr   rt   )r   r  r  r  rr   r   )r   zstr | pathlib.PurePath | Pathrr   r   )F)r  r  rr   r   rv   )r  r  rr   r  )r+  r  rr   r   )r   r  r  r  rr   rs   )i  T)r   rx   r  r  rr   rs   )r  r  rr   rs   )TNF)r  r  r  z"Callable[[OSError], object] | Noner+  r  rr   z0AsyncIterator[tuple[Path, list[str], list[str]]])r,   rt   rr   r   )r  rt   rr   r   )r   rt   rr   r   )r  r  rr   r   )r  rz   rr   rx   )NNN)
r  rt   r   r  r   r  r   r  rr   rx   )br~   r   r   r   r   	__slots__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  classmethodr  r  r#  r(  r/  r4  r8  r<  rA  rE  rH  rL  rQ  rT  rZ  r_  rb  rf  rj  rm  rp  rs  rw  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   rV   r(   r%   r   r      s   IV 'I>'$A&%)))))("           ! ! : : ' '   ! ! # #  %# 7"'.||':':$:		4 
	4 GK	V #	V8C	V	V GK	Q #	Q8C	Q	Q	2 7"		# 
	# %)&+	N*	N "		N
  $	N 	N$ %)&+	R.	R "		R
  $	R 	R	K
	T.	T 	T AE @  S

"R8C8	8  (



STT 7"	D

(VW0:R JOLL*.LBFL	L
  " !  	
   
   !" !  	
   
  #!"  	
   
R? AEP"P3=P	P
 7" @E	J-	J8<	J	J	8L"3
 59 R %*U=U "U 
	UC 7" ";?$)		.	. 9	. "		.
 >	.*0D4#F  $!"99 9 	9
 9 
9 9r(   )......)r   str | PathLike[str] | intr   r   r   rx   r   r  r   r  r   r  r   r  r    Callable[[str, int], int] | Nonerr   ry   ).......)r   r  r   r   r   rx   r   r  r   r  r   r  r   r  r   r  rr   r{   )r  rw   NNNTN)r   r  r   rt   r   rx   r   r  r   r  r   r  r   r  r   r  rr   r  )r   rq   rr   zAsyncFile[AnyStr])+
__future__r   r   r   r  collections.abcr   r   r   r   r   dataclassesr	   	functoolsr
   r   typingr   r   r   r   r   r   r   r    r   abcr   typesr   	_typeshedr   r   r   r   ru   r   r   r   r   r   registerrV   r(   r%   <module>r     s*   " 	  
  "  	 	 	   WWGMMNM^Ml_f8wv f8R 
 /2	
#	
	 	 		
 	 	 	 -	 	 
	 
 /2	
#	
	 	 		
 	 	 	 -	 	 
	 /3
#
  	
    - 0 e
M&) 
 
G9 G9T 	  $ r(   