�
B�g{ � �\ � d dl mZ d dlZd dlmZmZ ddlmZmZ d
d
�Z G d� d� � Z
dS )� )�annotationsN)�Any�NoReturn� )�StrOrBytesPath� TypeGuard�fr �return�TypeGuard[StrOrBytesPath]c �P � t | t t t j f� � S �N)�
isinstance�bytes�str�os�PathLike)r s �Y/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/PIL/_util.py�is_pathr s � ��a�%��b�k�2�3�3�3� c �6 � e Zd Zdd�Zd
d�Zedd
�� � ZdS )�
DeferredError�ex�
BaseExceptionc � � || _ d S r
�r )�selfr s r �__init__zDeferredError.__init__ s
� �����r �eltr r
r c � � | j �r
r )r r s r �__getattr__zDeferredError.__getattr__ s � ��g�
r r c � � 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 s r �newzDeferredError.new s � � �R� � � r N)r r )r r r
r )r r r
r )�__name__�
__module__�__qualname__r r �staticmethodr"