Skip to content

Commit c71e558

Browse files
authored
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.
1 parent c9932a9 commit c71e558

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/library/importlib.metadata.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,9 @@ Distribution versions
268268

269269
.. function:: version(distribution_name)
270270

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

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

0 commit comments

Comments
 (0)