Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10094a5

Browse files
authored
gh-125018: Fix role syntax (#125050)
1 parent 744caa8 commit 10094a5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/library/importlib.metadata.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Entry points
122122

123123
Returns a :class:`EntryPoints` instance describing entry points for the
124124
current environment. Any given keyword parameters are passed to the
125-
:meth:`!~EntryPoints.select` method for comparison to the attributes of
125+
:meth:`!select` method for comparison to the attributes of
126126
the individual entry point definitions.
127127

128128
Note: it is not currently possible to query for entry points based on
@@ -158,7 +158,7 @@ attributes for convenience::
158158
>>> sorted(eps.groups) # doctest: +SKIP
159159
['console_scripts', 'distutils.commands', 'distutils.setup_keywords', 'egg_info.writers', 'setuptools.installation']
160160

161-
:class:`!EntryPoints` has a :meth:`!~EntryPoints.select` method to select entry points
161+
:class:`!EntryPoints` has a :meth:`!select` method to select entry points
162162
matching specific properties. Select entry points in the
163163
``console_scripts`` group::
164164

@@ -232,7 +232,7 @@ Distribution metadata
232232
`PackageMetadata protocol <https://importlib-metadata.readthedocs.io/en/latest/api.html#importlib_metadata.PackageMetadata>`_.
233233

234234
In addition to providing the defined protocol methods and attributes, subscripting
235-
the instance is equivalent to calling the :meth:`!~PackageMetadata.get` method.
235+
the instance is equivalent to calling the :meth:`!get` method.
236236

237237
Every `Distribution Package <https://packaging.python.org/en/latest/glossary/#term-Distribution-Package>`_
238238
includes some metadata, which you can extract using the :func:`!metadata` function::
@@ -245,7 +245,7 @@ the values are returned unparsed from the distribution metadata::
245245
>>> wheel_metadata['Requires-Python'] # doctest: +SKIP
246246
'>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*'
247247

248-
:class:`PackageMetadata` also presents a :attr:`!~PackageMetadata.json` attribute that returns
248+
:class:`PackageMetadata` also presents a :attr:`!json` attribute that returns
249249
all the metadata in a JSON-compatible form per :PEP:`566`::
250250

251251
>>> wheel_metadata.json['requires_python']
@@ -331,7 +331,7 @@ Once you have the file, you can also read its contents::
331331
return s.encode('utf-8')
332332
return s
333333

334-
You can also use the :meth:`!~PackagePath.locate` method to get the absolute
334+
You can also use the :meth:`!locate` method to get the absolute
335335
path to the file::
336336

337337
>>> util.locate() # doctest: +SKIP

0 commit comments

Comments
 (0)