(self, components: list[str], match: tuple[str, bool])
| 370 | return ModuleNotFoundReason.NOT_FOUND |
| 371 | |
| 372 | def _update_ns_ancestors(self, components: list[str], match: tuple[str, bool]) -> None: |
| 373 | path, verify = match |
| 374 | for i in range(1, len(components)): |
| 375 | pkg_id = ".".join(components[:-i]) |
| 376 | if pkg_id not in self.ns_ancestors and self.fscache.isdir(path): |
| 377 | self.ns_ancestors[pkg_id] = path |
| 378 | path = os.path.dirname(path) |
| 379 | |
| 380 | def _can_find_module_in_parent_dir(self, id: str) -> bool: |
| 381 | """Test if a module can be found by checking the parent directories |
no test coverage detected