We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
safeimport
None
1 parent c661ac3 commit 133b9a0Copy full SHA for 133b9a0
stdlib/pydoc.pyi
@@ -40,7 +40,7 @@ class ErrorDuringImport(Exception):
40
def __init__(self, filename: str, exc_info: OptExcInfo) -> None: ...
41
42
def importfile(path: str) -> ModuleType: ...
43
-def safeimport(path: str, forceload: bool = ..., cache: MutableMapping[str, ModuleType] = ...) -> ModuleType: ...
+def safeimport(path: str, forceload: bool = ..., cache: MutableMapping[str, ModuleType] = ...) -> ModuleType | None: ...
44
45
class Doc:
46
PYTHONDOCS: str
0 commit comments