Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-134740: Add missing documentation for importlib.metadata.distributions()#134749

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ashm-dev wants to merge3 commits intopython:main
base:main
Choose a base branch
Loading
fromashm-dev:doc-importlib-metadata-distributions

Conversation

ashm-dev
Copy link
Contributor

@ashm-devashm-dev commentedMay 26, 2025
edited
Loading

Summary of Changes

Add documentation for:

  • importlib.metadata.distributions() function
  • DistributionFinder class
  • DistributionFinder.Context class

These items were part of the public API (included in__all__) but were missing from the documentation. The PR adds proper documentation for these items in the same style as the existing documentation, including descriptions of parameters and return values.

Issue Details

The issue was reported ingh-134740 where it was noted that importlib.metadata.distributions() is not listed in the documentation despite being in__all__ and referred to in the docstrings for several other module items. The DistributionFinder and DistributionFinder.Context classes were also missing from the documentation.

Changes Made

  1. Added function documentation for distributions() in the "Distributions" section
  2. Added class documentation for DistributionFinder
  3. Added class documentation for DistributionFinder.Context
  4. Added a reference label for the "Implementing Custom Providers" section

Related Issues

Closes#134740
Related to#134740


📚 Documentation preview 📚:https://cpython-previews--134749.org.readthedocs.build/

@python-cla-bot
Copy link

python-cla-botbot commentedMay 26, 2025
edited
Loading

All commit authors signed the Contributor License Agreement.

CLA signed

…tions()Add documentation for the distributions() function, Distribution.discover() method,and DistributionFinder classes that were missing from the importlib.metadatadocumentation despite being part of the public API.
@ashm-devashm-devforce-pushed thedoc-importlib-metadata-distributions branch from0112ab6 to2e597d1CompareMay 26, 2025 20:07
@emmatyping
Copy link
Member

Hey@ashm-dev ! I see we ended up both making PRs. Would you like to take a look at#134751 and incorporate anything you may find useful?

@ashm-dev
Copy link
ContributorAuthor

Hey@ashm-dev ! I see we ended up both making PRs. Would you like to take a look at#134751 and incorporate anything you may find useful?

Hi! Yes, I'll take a look now and add what's missing)

emmatyping reacted with rocket emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@brettcannonbrettcannonAwaiting requested review from brettcannonbrettcannon is a code owner

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrentlyericsnowcurrently is a code owner

@ncoghlanncoghlanAwaiting requested review from ncoghlanncoghlan is a code owner

@warsawwarsawAwaiting requested review from warsawwarsaw is a code owner

Assignees
No one assigned
Labels
awaiting reviewdocsDocumentation in the Doc dirskip news
Projects
Status: Todo
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Documentation missing forimportlib.metadata.distributions()
2 participants
@ashm-dev@emmatyping

[8]ページ先頭

©2009-2025 Movatter.jp