/snap/core24/1587/usr/lib/python3.12/importlib/resources/__pycache__
Edit: /snap/core24/1587/usr/lib/python3.12/importlib/resources/__pycache__/abc.cpython-312.pyc (8921B)
ЦiS d dl Z d dlZd dlZd dlZd dlZd dlmZmZmZm Z m
Z
mZmZ d dlm
Z
mZ d dlmZ eeej" e f Zg dZ G d de j( Z G d d
e Ze
G d de Z G d
de Zy) N)AnyBinaryIOIterableIteratorNoReturnTextOptional)runtime_checkableProtocol)Union)ResourceReaderTraversableTraversableResourcesc e Zd ZdZej
dedefd Zej
dedefd Z ej
dede
fd Zej
dee
fd Zy )
r
zDAbstract base class for loaders to provide resource reading support.resourcereturnc t )zReturn 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.
FileNotFoundErrorselfr s ./usr/lib/python3.12/importlib/resources/abc.py
open_resourcezResourceReader.open_resource s
c t )zReturn 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.contents4 s
r N)__name__
__module____qualname____doc__abcabstractmethodr r r r boolr r strr# r r r
r
s N d x
d
t
(3- r r
) metaclassc e Zd Zy)TraversalErrorN)r$ r% r&