gh-142197: Doc: Add missing import statement in importlib.metadata overview - #142208
Conversation
StanFromIreland
left a comment
There was a problem hiding this comment.
Please revert unrelated changes in different files.
|
|
||
| You can get the :ref:`metadata for a distribution <metadata>`:: | ||
|
|
||
| >>> list(metadata('wheel')) # doctest: +SKIP |
There was a problem hiding this comment.
Why are you changing the indentation?
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Co-authored-by: Edgar Ramírez Mondragón <edgarrm358@gmail.com>
|
I have made the requested changes; please review again. |
|
Thanks for making the requested changes! @picnixz: please review the changes made to this pull request. |
|
@picnixz , just checking in, could you review my PR and let me know if there's anything more to fix? |
|
As I am on mobile I do not trust the GH UI so I will let another core dev merge this one |
|
This PR is stale because it has been open for 30 days with no activity. |
|
This PR is stale because it has been open for 90 days with no activity. |
|
i forgot about it; backports are automatic once the PR is merged (and manual if fhere are conflicts). I am on mobile so I am going to merge this tomorrow, thanks for the reminder! |
|
I can merge it right now @picnixz ? |
|
Yes please |
|
Thanks @Yashp002 for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
|
GH-157284 is a backport of this pull request to the 3.15 branch. |
|
GH-157285 is a backport of this pull request to the 3.14 branch. |
|
GH-157286 is a backport of this pull request to the 3.13 branch. |
Fixes #142197
Added missing
from importlib.metadata import metadataimport statement before the example code that usesmetadata('wheel')in the overview section.The documentation showed usage of the
metadata()function without first importing it, causing aNameErrorwhen users tried to follow the example. This change ensures the example code is runnable as-is.📚 Documentation preview 📚: https://cpython-previews--142208.org.readthedocs.build/