Skip to content

Commit 9f52661

Browse files
committed
Specify path_finder's type in the NamespacePath docstring
Signed-off-by: Filipe Laíns <[email protected]>
1 parent bb16ae1 commit 9f52661

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/importlib/_bootstrap_external.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,9 @@ class NamespacePath:
10941094
recomputed, using *path_finder*. The initial value is set to *path*.
10951095
10961096
For top-level modules, the parent module's path is sys.path.
1097+
1098+
*path_finder* should be a callable with the same signature as
1099+
MetaPathFinder.find_spec ((fullname, path, target=None) -> spec).
10971100
"""
10981101

10991102
# When invalidate_caches() is called, this epoch is incremented

0 commit comments

Comments
 (0)