Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ contents
Method
contents
Lib/importlib/resources/abc.py:172–173 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
170
return
self.files().joinpath(path).is_file()
171
172
def
contents(self) -> Iterator[str]:
173
return
(item.name
for
item in self.files().iterdir())
Callers
nothing calls this directly
Calls
2
files
Method · 0.95
iterdir
Method · 0.45
Tested by
no test coverage detected