(self, module_name: str, prefix: str)
| 193 | if self.is_suggestion_match(attr_name, prefix)], None |
| 194 | |
| 195 | def is_suggestion_match(self, module_name: str, prefix: str) -> bool: |
| 196 | if prefix: |
| 197 | return module_name.startswith(prefix) |
| 198 | # For consistency with attribute completion, which |
| 199 | # does not suggest private attributes unless requested. |
| 200 | return not module_name.startswith("_") |
| 201 | |
| 202 | def iter_submodules(self, parent_modules: list[pkgutil.ModuleInfo]) -> Iterator[pkgutil.ModuleInfo]: |
| 203 | """Iterate over all submodules of the given parent modules.""" |
no test coverage detected