o
    sÇh{  ã                   @  sP   d dl mZ d dlZd dlmZmZ ddlmZmZ dd
d„Z	G dd„ dƒZ
dS )é    )ÚannotationsN)ÚAnyÚNoReturné   )ÚStrOrBytesPathÚ	TypeGuardÚfr   ÚreturnúTypeGuard[StrOrBytesPath]c                 C  s   t | tttjfƒS ©N)Ú
isinstanceÚbytesÚstrÚosÚPathLike)r   © r   ú]/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/PIL/_util.pyÚis_path	   s   r   c                   @  s.   e Zd Zddd„Zdd	d
„Zeddd„ƒZdS )ÚDeferredErrorÚexÚBaseExceptionc                 C  s
   || _ d S r   ©r   )Úselfr   r   r   r   Ú__init__   s   
zDeferredError.__init__Úeltr   r	   r   c                 C  s   | j ‚r   r   )r   r   r   r   r   Ú__getattr__   s   zDeferredError.__getattr__r   c                 C  s   t | ƒS )z‹
        Creates an object that raises the wrapped exception ``ex`` when used,
        and casts it to :py:obj:`~typing.Any` type.
        )r   r   r   r   r   Únew   s   zDeferredError.newN)r   r   )r   r   r	   r   )r   r   r	   r   )Ú__name__Ú
__module__Ú__qualname__r   r   Ústaticmethodr   r   r   r   r   r      s
    

r   )r   r   r	   r
   )Ú
__future__r   r   Útypingr   r   Ú_typingr   r   r   r   r   r   r   r   Ú<module>   s    
