Skip to content

Commit 257240e

Browse files
[3.12] Add link in the importlib.metadata.version() docs (GH-130739) (#130760)
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 c71e558) Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
1 parent a0676db commit 257240e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/library/importlib.metadata.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,9 @@ Distribution versions
266266

267267
.. function:: version(distribution_name)
268268

269-
Return the installed distribution package version for the named
270-
distribution package.
269+
Return the installed distribution package
270+
`version <https://packaging.python.org/en/latest/specifications/core-metadata/#version>`__
271+
for the named distribution package.
271272

272273
Raises :exc:`PackageNotFoundError` if the named distribution
273274
package is not installed in the current Python environment.

0 commit comments

Comments
 (0)