Skip to content

Commit 435f5cc

Browse files
committed
Disambiguate path and name
1 parent 8f76e0e commit 435f5cc

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Doc/library/importlib.metadata.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,8 @@ This metadata finder search defaults to ``sys.path``, but varies slightly in how
489489
A :class:`!Context` gives a custom provider a means to
490490
solicit additional details from the callers of distribution discovery
491491
functions like :func:`distributions` or :meth:`Distribution.discover`
492-
beyond :attr:`!name` and :attr:`!path` when searching for
493-
distributions.
492+
beyond :attr:`!.name` and :attr:`!.path` when searching
493+
for distributions.
494494

495495
For example, a provider could expose suites of packages in either a
496496
"public" or "private" ``realm``. A caller of distribution discovery
@@ -507,7 +507,7 @@ This metadata finder search defaults to ``sys.path``, but varies slightly in how
507507

508508
Specific name for which a distribution finder should match.
509509

510-
A :attr:`!name` of ``None`` matches all distributions.
510+
A :attr:`!.name` of ``None`` matches all distributions.
511511

512512
.. attribute:: path
513513

@@ -564,9 +564,11 @@ method::
564564
loading the metadata for packages for the indicated ``context``.
565565
"""
566566

567-
The :class:`DistributionFinder.Context` object provides :attr:`.path` and
568-
:attr:`.name` properties indicating the path to search and name to match and
569-
may supply other relevant context sought by the consumer.
567+
The :class:`DistributionFinder.Context` object provides
568+
:attr:`~DistributionFinder.Context.path` and
569+
:attr:`~DistributionFinder.Context.name` properties indicating the path to
570+
search and name to match and may supply other relevant context sought by the
571+
consumer.
570572

571573
In practice, to support finding distribution package
572574
metadata in locations other than the file system, subclass

0 commit comments

Comments
 (0)