Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix docstrings
Signed-off-by: Filipe Laíns <lains@riseup.net>
  • Loading branch information
FFY00 committed Dec 10, 2025
commit 051cd1e5cf99af1ca42610306351955b7601e0cc
10 changes: 6 additions & 4 deletions Lib/importlib/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ def invalidate_caches(self):
"""

def discover(self, parent=None):
"""An optional method which searches for possible specs with given *parent*.
If *parent* is *None*, MetaPathFinder.discover will search for top-level modules.
"""An optional method which searches for possible specs with given *parent*
module spec. If *parent* is *None*, MetaPathFinder.discover will search
for top-level modules.

Returns an iterable of possible specs.
"""
Expand All @@ -68,8 +69,9 @@ def invalidate_caches(self):
"""

def discover(self, parent=None):
"""An optional method which searches for possible specs with given *parent*.
If *parent* is *None*, PathEntryFinder.discover will search for top-level modules.
"""An optional method which searches for possible specs with given
*parent* module spec. If *parent* is *None*, PathEntryFinder.discover
will search for top-level modules.

Returns an iterable of possible specs.
"""
Expand Down