MCPcopy Index your code
hub / github.com/python/cpython / files

Method files

Lib/importlib/resources/abc.py:160–161  ·  view source on GitHub ↗

Return a Traversable object for the loaded package.

(self)

Source from the content-addressed store, hash-verified

158
159 @abc.abstractmethod
160 def files(self) -> "Traversable":
161 """Return a Traversable object for the loaded package."""
162
163 def open_resource(self, resource: StrPath) -> io.BufferedReader:
164 return self.files().joinpath(resource).open('rb')

Callers 3

open_resourceMethod · 0.95
is_resourceMethod · 0.95
contentsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected