MCPcopy Create free account
hub / github.com/python/cpython / _discover_resolvers

Method _discover_resolvers

Lib/importlib/metadata/__init__.py:514–519  ·  view source on GitHub ↗

Search the meta_path for resolvers (MetadataPathFinders).

()

Source from the content-addressed store, hash-verified

512
513 @staticmethod
514 def _discover_resolvers():
515 """Search the meta_path for resolvers (MetadataPathFinders)."""
516 declared = (
517 getattr(finder, 'find_distributions', None) for finder in sys.meta_path
518 )
519 return filter(None, declared)
520
521 @property
522 def metadata(self) -> _meta.PackageMetadata:

Callers 1

discoverMethod · 0.80

Calls 1

filterFunction · 0.50

Tested by

no test coverage detected