From 45db876257f48baed4b419f0ab4f7a840603d250 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Sat, 1 Mar 2025 18:35:42 +0100 Subject: [PATCH] Add link in importlib.metadata.version() docs Link the specification for the returned data makes it clearer what this is and what the format of the version string can be. --- Doc/library/importlib.metadata.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/library/importlib.metadata.rst b/Doc/library/importlib.metadata.rst index 45bf19ec29286d..67df24797135ca 100644 --- a/Doc/library/importlib.metadata.rst +++ b/Doc/library/importlib.metadata.rst @@ -268,8 +268,9 @@ Distribution versions .. function:: version(distribution_name) - Return the installed distribution package version for the named - distribution package. + Return the installed distribution package + `version `__ + for the named distribution package. Raises :exc:`PackageNotFoundError` if the named distribution package is not installed in the current Python environment.