o
    1< i  ã                   @  s2   d dl mZ d dlmZ G dd„ deƒZdgZdS )é    )Úannotations)ÚAnyc                      sN   e Zd ZdZd‡ fdd„Zdd	d
„Zddd„Zddd„Zeddd„ƒZ	‡  Z
S )ÚTimeoutz@Raised when the lock could not be acquired in *timeout* seconds.Ú	lock_fileÚstrÚreturnÚNonec                   s   t ƒ  ¡  || _d S ©N)ÚsuperÚ__init__Ú
_lock_file)Úselfr   ©Ú	__class__© úJ/home/app/PyTorch/.pytorch/lib/python3.10/site-packages/filelock/_error.pyr   	   s   

zTimeout.__init__ústr | tuple[Any, ...]c                 C  s   | j | jffS r	   )r   r   ©r   r   r   r   Ú
__reduce__   ó   zTimeout.__reduce__c                 C  s   d| j › dS )NzThe file lock 'z' could not be acquired.©r   r   r   r   r   Ú__str__   r   zTimeout.__str__c                 C  s   | j j› d| j›dS )Nú(ú))r   Ú__name__r   r   r   r   r   Ú__repr__   s   zTimeout.__repr__c                 C  s   | j S )z#:return: The path of the file lock.r   r   r   r   r   r      s   zTimeout.lock_file)r   r   r   r   )r   r   )r   r   )r   Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   Úpropertyr   Ú__classcell__r   r   r   r   r      s    


r   N)Ú
__future__r   Útypingr   ÚTimeoutErrorr   Ú__all__r   r   r   r   Ú<module>   s
    ÿ