Skip to content

Commit dbfcab1

Browse files
committed
Document _find_module return
1 parent 307d446 commit dbfcab1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mypy/modulefinder.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,11 @@ def _can_find_module_in_parent_dir(self, id: str) -> bool:
397397
return False
398398

399399
def _find_module(self, id: str, use_typeshed: bool) -> tuple[ModuleSearchResult, bool]:
400+
"""Try to find a module in all available sources.
401+
402+
Returns:
403+
``(result, can_be_cached)`` pair.
404+
"""
400405
fscache = self.fscache
401406

402407
# Fast path for any modules in the current source set.

0 commit comments

Comments
 (0)