Your IP : 18.117.91.116
�
c��f� � � � d dl Z d dlZd dlZd dlmZmZmZmZmZm Z m
Z
d dlmZmZ d dlm
Z
e
eej e f Zg d�Z G d� de j �� � Ze G d � d
e� � � � Z G d� de� � ZdS )
� N)�Any�BinaryIO�Iterable�Iterator�NoReturn�Text�Optional)�runtime_checkable�Protocol)�Union)�ResourceReader�Traversable�TraversableResourcesc �� � e Zd ZdZej dedefd�� � Zej dedefd�� � Z ej dede
fd�� � Zej dee
fd�� � Zd S )
r
zDAbstract base class for loaders to provide resource reading support.�resource�returnc � � t �)z�Return an opened, file-like object for binary reading.
The 'resource' argument is expected to represent only a file name.
If the resource cannot be found, FileNotFoundError is raised.
��FileNotFoundError��selfr s �>/opt/alt/python311/lib64/python3.11/importlib/resources/abc.py�
open_resourcezResourceReader.open_resource s
� � �� c � � t �)z�Return the file system path to the specified resource.
The 'resource' argument is expected to represent only a file name.
If the resource does not exist on the file system, raise
FileNotFoundError.
r r s r �
resource_pathzResourceReader.resource_path s
� � �r �pathc � � t �)zjReturn True if the named 'path' is a resource.
Files are resources, directories are not.
r �r r s r �is_resourcezResourceReader.is_resource* s
� � �r c � � t �)z+Return an iterable of entries in `package`.r �r s r �contentszResourceReader.contents2 s
� � �r N)�__name__�
__module__�__qualname__�__doc__�abc�abstractmethodr r r r �boolr r �strr# � r r r
r
s� � � � � � �N�N��� �d� �x� � � � �� � ��
�d�
�t�
�
�
� ��
� �� �� �� � � � �� � �� �(�3�-� � � � �� � � r r
)� metaclassc �< � e Zd ZdZej ded fd�� � Zdefd�Z dde
e defd�Zej de
fd�� � Zej de
fd �� � Zej d
edd fd�� � Zdedd fd
�Zej dd�� � Zej defd�� � ZdS )r z�
An object with a subset of pathlib.Path methods suitable for
traversing directories and opening files.
Any exceptions that occur when accessing the backing resource
may propagate unaltered.
r c � � dS )z3
Yield Traversable objects in self
Nr, r"