()
| 290 | "and propose attributes ]") |
| 291 | |
| 292 | def _do_import() -> str | None: |
| 293 | try: |
| 294 | importlib.import_module(path) |
| 295 | return None |
| 296 | except Exception as exc: |
| 297 | sys.modules.pop(path, None) # Clean half-imported module |
| 298 | self._failed_imports.add(path) |
| 299 | return f"[ error during import: {exc} ]" |
| 300 | |
| 301 | return (prompt, _do_import) |
| 302 |
nothing calls this directly
no test coverage detected