https://github.com/python/cpython/commit/df38793409b83a276645f3edcde4091bf90d473f
commit: df38793409b83a276645f3edcde4091bf90d473f
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2026-09-11T19:19:57+03:00
summary:

[3.15] gh-142197: Doc: Add missing import statement in importlib.metadata 
overview (GH-142208) (#157284)

Co-authored-by: Yashraj <[email protected]>
Co-authored-by: Edgar Ramírez Mondragón <[email protected]>
Co-authored-by: Bénédikt Tran <[email protected]>

files:
M Doc/library/importlib.metadata.rst

diff --git a/Doc/library/importlib.metadata.rst 
b/Doc/library/importlib.metadata.rst
index e11db37b9fad50..1378a131f0ce65 100644
--- a/Doc/library/importlib.metadata.rst
+++ b/Doc/library/importlib.metadata.rst
@@ -90,6 +90,7 @@ collection of :ref:`EntryPoint <entry-points>` objects.
 
 You can get the :ref:`metadata for a distribution <metadata>`::
 
+    >>> from importlib.metadata import metadata  # doctest: +SKIP
     >>> list(metadata('wheel'))  # doctest: +SKIP
     ['Metadata-Version', 'Name', 'Version', 'Summary', 'Home-page', 'Author', 
'Author-email', 'Maintainer', 'Maintainer-email', 'License', 'Project-URL', 
'Project-URL', 'Project-URL', 'Keywords', 'Platform', 'Classifier', 
'Classifier', 'Classifier', 'Classifier', 'Classifier', 'Classifier', 
'Classifier', 'Classifier', 'Classifier', 'Classifier', 'Classifier', 
'Classifier', 'Requires-Python', 'Provides-Extra', 'Requires-Dist', 
'Requires-Dist']
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to