]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add link in the `importlib.metadata.version()` docs (#130739)
authorTim Hoffmann <2836374+timhoffm@users.noreply.github.com>
Sun, 2 Mar 2025 09:23:32 +0000 (10:23 +0100)
committerGitHub <noreply@github.com>
Sun, 2 Mar 2025 09:23:32 +0000 (10:23 +0100)
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

index 45bf19ec29286d21b067e30e11ac6ca9d45a4159..67df24797135ca445c29a86dc335643a54fe88f9 100644 (file)
@@ -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 <https://packaging.python.org/en/latest/specifications/core-metadata/#version>`__
+   for the named distribution package.
 
    Raises :exc:`PackageNotFoundError` if the named distribution
    package is not installed in the current Python environment.