[3.13] Add link in the importlib.metadata.version() docs (GH-130739) (#130761)

Add link in the `importlib.metadata.version()` docs (GH-130739)

Link the specification for the returned data makes it clearer what this is
and what the format of the version string can be.
(cherry picked from commit c71e55869e)

Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2025-03-02 11:42:15 +01:00 committed by GitHub
parent dca599eaad
commit ff14c1e7a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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.