https://github.com/python/cpython/commit/f64ebfbc2bf7de7905d5b7fdafb9ba1ab1c251bb
commit: f64ebfbc2bf7de7905d5b7fdafb9ba1ab1c251bb
branch: main
author: Yashraj <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-09-10T21:40:04+01:00
summary:

gh-142197: Doc: Add missing import statement in importlib.metadata overview 
(#142208)

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