%PDF- %PDF-
Direktori : /lib/python3/dist-packages/PIL/__pycache__/ |
Current File : //lib/python3/dist-packages/PIL/__pycache__/_util.cpython-312.pyc |
� ��e7 � �d � d dl mZ d dlZd dlmZ d dlmZmZ ddlm Z dd�Z dd�Z G d � d � Zy)� )�annotationsN)�Path)�Any�NoReturn� )� TypeGuardc �8 � t | t t t f� S �N)� isinstance�bytes�strr ��fs �+/usr/lib/python3/dist-packages/PIL/_util.py�is_pathr s � ��a�%��d�+�,�,� c �Z � t | � xr t j j | � S )zCChecks if an object is a string, and that it points to a directory.)r �os�path�isdirr s r �is_directoryr s � ��1�:�*�"�'�'�-�-��*�*r c �. � e Zd Zdd�Zdd�Zedd�� Zy)� DeferredErrorc � � || _ y r ��ex)�selfr s r �__init__zDeferredError.__init__ s � ���r c � � | j �r r )r �elts r �__getattr__zDeferredError.__getattr__ s � ��g�g� 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 � BaseException)r r �returnr )r r$ r% r )�__name__� __module__�__qualname__r r! �staticmethodr# � r r r r s � ��� �!� �!r r )r r r% zTypeGuard[bytes | str | Path]) � __future__r r �pathlibr �typingr r �_typingr r r r r* r r �<module>r/ s( �� "� � � � �-�+� !� !r