+
     h  c                  s    ^ RI Ht ^ RIt^ RIt^ RIHt ^ RIHt ^ RIH	t	 ^ RI
Ht ^RIHt ^RIHtHt ]P"                  R	8X  d   ^ RIt ! R
 R]4      tM ! R R]4      tR.tR# )i    )annotationsN)suppress)EACCES)Path)cast)BaseFileLock)ensure_directory_existsraise_on_not_writable_fileZwin32c                  s2    ] tR t^tRtR R ltR R ltRtR# )WindowsFileLockWUses the :func:`msvcrt.locking` function to hard lock the lock file on Windows systems.c                   V ^8  d   QhRR/# i   ZreturnZNone Zformat   "6/usr/lib/python3.14/site-packages/filelock/_windows.py__annotate__WindowsFileLock.__annotate__   s     	4 	4d 	4    c                	s   \        V P                  4       \        V P                  4       \        P                  \        P
                  ,          \        P                  ,          p \        P                  ! V P                  WP                  P                  4      p \        P                  ! V\        P                  ^4       W P                  n        R#   \         d8   p\        P                  ! T4       TP                   \"        8w  d   h  Rp?R# Rp?ii ; i  \         d"   pTP                   \"        8w  d   h  Rp?R# Rp?ii ; i)i   N)r   	lock_filer   osZO_RDWRZO_CREATZO_TRUNCZopen_contextZmodemsvcrtlockingZLK_NBLCKlock_file_fdOSErrorcloseerrnor   )selfZflagsfdZ	exceptions   &   r   _acquireWindowsFileLock._acquire   s    &t~~6#DNN3		**** 
4WWT^^UMM4F4FG
4NN2v: 24MM.  HHRL &0 1  ??f, -s0   &5D &C D,DDE$E  Ec               r
   r   r   r   r   r   r   r   *   s     	. 	.d 	.r   c                	s   \        \        V P                  P                  4      pR V P                  n        \        P
                  ! V\        P                  ^4       \        P                  ! V4       \        \        4      ;_uu_ 4        \        V P                  4      P                  4        R R R 4       R #   + '       g   i     R # ; iN)r   Zintr   r   r   r   ZLK_UNLCKr   r   r   r   r   r   Zunlink)r   r   s   & r   _releaseWindowsFileLock._release*   sr    c4==556B)-DMM&NN2v2HHRL'""T^^$++- #"""s   	$B77C	r   NZ__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__r   r!   Z__static_attributes__r   r   r   r   r      s    e	4.	. 	.r   r   c                  s2    ] tR t^5tRtR R ltR R ltRtR# )r   r	   c               r
   r   r   r   r   r   r   r   8        	& 	&d 	&r   c                	    \         hr    ZNotImplementedErrorr      &r   r   r   8       %%r   c               r
   r   r   r   r   r   r   r   ;   r$   r   c                	r%   r    r&   r'   r(   r   r!   r"   ;   r)   r   r   Nr#   r   r   r   r   r   5   s    e	&	& 	&r   )Z
__future__r    r   ZsysZ
contextlibr   r   r   Zpathlibr   Ztypingr   Z_apir   Z_utilr   r   Zplatformr   r   Z__all__r   r   r   <module>r*      sT    " 	 
      F<<7!., !.J&, & r   