Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ _top_level_declared
Function
_top_level_declared
Lib/importlib/metadata/__init__.py:1164–1165 ·
view source on GitHub ↗
(dist)
Source
from the content-addressed store, hash-verified
1162
1163
1164
def
_top_level_declared(dist):
1165
return
(dist.read_text(
'top_level.txt'
) or
''
).split()
1166
1167
1168
def
_topmost(name: PackagePath) -> str | None:
Callers
1
packages_distributions
Function · 0.85
Calls
2
split
Method · 0.45
read_text
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…