From 4369253b92ce582dc9ab71caaa0687156bbaa4fd Mon Sep 17 00:00:00 2001 From: Yashraj Date: Fri, 11 Sep 2026 02:10:04 +0530 Subject: [PATCH] gh-142197: Doc: Add missing import statement in importlib.metadata overview (GH-142208) (cherry picked from commit f64ebfbc2bf7de7905d5b7fdafb9ba1ab1c251bb) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Yashraj Co-authored-by: Edgar Ramírez Mondragón Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> --- Doc/library/importlib.metadata.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Doc/library/importlib.metadata.rst b/Doc/library/importlib.metadata.rst index e11db37b9fad501..1378a131f0ce651 100644 --- a/Doc/library/importlib.metadata.rst +++ b/Doc/library/importlib.metadata.rst @@ -90,6 +90,7 @@ collection of :ref:`EntryPoint ` objects. You can get the :ref:`metadata for a distribution `:: + >>> 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']