관리-도구
편집 파일: abc.cpython-38.pyc
U +�e � @ s� d dl Z d dlZd dlZd dlZd dlmZmZmZmZm Z m Z mZ ddlm Z mZmZ dddgZG dd� de jd �ZG d d� de�Ze G dd� de��ZG d d� de�ZdS )� N)�Any�BinaryIO�Iterable�Iterator�NoReturn�Text�Optional� )�runtime_checkable�Protocol�StrPath�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 �E/opt/hc_python/lib/python3.8/site-packages/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_resource) s zResourceReader.is_resource�r c C s t �dS )z+Return an iterable of entries in `package`.Nr �r r r r �contents1 s zResourceReader.contentsN)�__name__� __module__�__qualname__�__doc__�abc�abstractmethodr r r r �boolr r �strr! r r r r r s )� metaclassc @ s e Zd ZdS )�TraversalErrorN)r"