Skip to content

Commit 8ccb7ba

Browse files
FFY00warsaw
andauthored
Apply suggestions from code review
Co-authored-by: Barry Warsaw <[email protected]>
1 parent 0494d7b commit 8ccb7ba

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Doc/library/importlib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,15 +1017,15 @@ find and load modules.
10171017

10181018
Represents a :term:`namespace package`'s path (:attr:`module.__path__`).
10191019

1020-
When its value is accessed, if necessary, it will be recomputed.
1020+
When its `__path__` value is accessed it will be recomputed if necessary.
10211021
This keeps it in-sync with the global state (:attr:`sys.modules`).
10221022

10231023
The *name* argument is the name of the namespace module.
10241024

10251025
The *path* argument is the initial path value.
10261026

10271027
The *path_finder* argument is the callable used to recompute the path value.
1028-
It has the same signature as :meth:`MetaPathFinder.find_spec`.
1028+
The callable has the same signature as :meth:`MetaPathFinder.find_spec`.
10291029

10301030
When the parent's :attr:`module.__path__` attribute is updated, the path
10311031
value is recomputed.

Lib/importlib/_bootstrap_external.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ class NamespacePath:
10961096
For top-level modules, the parent module's path is sys.path.
10971097
10981098
*path_finder* should be a callable with the same signature as
1099-
MetaPathFinder.find_spec ((fullname, path, target=None) -> spec).
1099+
MetaPathFinder.find_spec((fullname, path, target=None) -> spec).
11001100
"""
11011101

11021102
# When invalidate_caches() is called, this epoch is incremented
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Expose :class:`importlib.machinery.NamespacePath`.
1+
Publicly expose and document :class:`importlib.machinery.NamespacePath`.

0 commit comments

Comments
 (0)