File: //var/opt/nydus/ops/importlib_resources/__pycache__/abc.cpython-39.pyc
a
d�pi� � @ s� d dl Z d dlZd dlZd dlZd dlmZmZmZmZm Z m
Z
mZmZm
Z
mZmZmZmZ eeeje f Zg d�ZG dd� de jd�ZG dd� de�ZeG d d
� d
e��ZG dd� de�ZdS )
� N)
�Any�BinaryIO�Iterable�Iterator�NoReturn�Literal�Optional�Protocol�Text�TextIO�Union�overload�runtime_checkable)�ResourceReader�Traversable�TraversableResourcesc @ sj e Zd ZdZejeed�dd��Zejeed�dd��Z ejee
d�dd ��Zejee
d
�dd��Zd
S )r zDAbstract base class for loaders to provide resource reading support.��resource�returnc C s t �dS )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.
N��FileNotFoundError��selfr � r �H/opt/nydus/tmp/pip-target-fvo0evhh/lib/python/importlib_resources/abc.py�
open_resource s
zResourceReader.open_resourcec C s t �dS )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.
Nr r r r r �
resource_path) s zResourceReader.resource_path��pathr c C s t �dS )zjReturn True if the named 'path' is a resource.
Files are resources, directories are not.
Nr �r r r r r �is_resource6 s zResourceReader.is_resource�r c C s t �dS )z+Return an iterable of entries in `package`.Nr �r r r r �contents>