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

Function _top_level_inferred

Lib/importlib/metadata/__init__.py:1200–1206  ·  view source on GitHub ↗
(dist)

Source from the content-addressed store, hash-verified

1198
1199
1200def _top_level_inferred(dist):
1201 opt_names = set(map(_get_toplevel_name, always_iterable(dist.files)))
1202
1203 def importable_name(name):
1204 return '.' not in name
1205
1206 return filter(importable_name, opt_names)

Callers 1

packages_distributionsFunction · 0.85

Calls 3

setFunction · 0.85
always_iterableFunction · 0.70
filterFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…