Skip to content

Commit 0b66bf0

Browse files
committed
Add link in importlib.metadata.version() docs
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 5221d9c commit 0b66bf0

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)