From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Sun, 2 Mar 2025 09:23:32 +0000 (+0100) Subject: Add link in the `importlib.metadata.version()` docs (#130739) X-Git-Tag: v3.14.0a6~204 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c71e55869e7bc56b2bd04f3055f810026a66c076;p=thirdparty%2FPython%2Fcpython.git Add link in the `importlib.metadata.version()` docs (#130739) Link the specification for the returned data makes it clearer what this is and what the format of the version string can be. --- diff --git a/Doc/library/importlib.metadata.rst b/Doc/library/importlib.metadata.rst index 45bf19ec2928..67df24797135 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.