U
    xÊ¹j  ã                   @  s2   d dl mZ d dlmZ G dd„ deƒZdgZdS )é    )Úannotations)ÚAnyc                      sd   e Zd ZdZdddœ‡ fdd„Zddœd	d
„Zddœdd„Zddœdd„Zeddœdd„ƒZ	‡  Z
S )ÚTimeoutz@Raised when the lock could not be acquired in *timeout* seconds.ÚstrÚNone)Ú	lock_fileÚreturnc                   s   t ƒ  ¡  || _d S ©N)ÚsuperÚ__init__Ú
_lock_file)Úselfr   ©Ú	__class__© úN/var/www/html/bwave/python/venv/lib/python3.8/site-packages/filelock/_error.pyr   	   s    
zTimeout.__init__zstr | tuple[Any, ...])r   c                 C  s   | j | jffS r	   )r   r   ©r   r   r   r   Ú
__reduce__   s    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__   s    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   Ú
__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   ÿ