Skip to content

Commit 725fc55

Browse files
committed
Workaround sphinx issue
`version <URL>`_ implicitly creates a sphinx label "version", but unfortunately the section already has that label. To work around this, I expanded the link from the word "version" to "distribution package version".
1 parent 0b66bf0 commit 725fc55

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Doc/library/importlib.metadata.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,7 @@ Distribution versions
268268

269269
.. function:: version(distribution_name)
270270

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

275274
Raises :exc:`PackageNotFoundError` if the named distribution

0 commit comments

Comments
 (0)