Skip to content

Commit 133b9a0

Browse files
author
Károly Szabó
authored
[pydoc] safeimport can return None (#9856)
1 parent c661ac3 commit 133b9a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/pydoc.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ErrorDuringImport(Exception):
4040
def __init__(self, filename: str, exc_info: OptExcInfo) -> None: ...
4141

4242
def importfile(path: str) -> ModuleType: ...
43-
def safeimport(path: str, forceload: bool = ..., cache: MutableMapping[str, ModuleType] = ...) -> ModuleType: ...
43+
def safeimport(path: str, forceload: bool = ..., cache: MutableMapping[str, ModuleType] = ...) -> ModuleType | None: ...
4444

4545
class Doc:
4646
PYTHONDOCS: str

0 commit comments

Comments
 (0)