mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
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.
This commit is contained in:
parent
c9932a9ec8
commit
c71e55869e
1 changed files with 3 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue