mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
[pydoc] safeimport can return None (#9856)
This commit is contained in:
@@ -40,7 +40,7 @@ class ErrorDuringImport(Exception):
|
||||
def __init__(self, filename: str, exc_info: OptExcInfo) -> None: ...
|
||||
|
||||
def importfile(path: str) -> ModuleType: ...
|
||||
def safeimport(path: str, forceload: bool = ..., cache: MutableMapping[str, ModuleType] = ...) -> ModuleType: ...
|
||||
def safeimport(path: str, forceload: bool = ..., cache: MutableMapping[str, ModuleType] = ...) -> ModuleType | None: ...
|
||||
|
||||
class Doc:
|
||||
PYTHONDOCS: str
|
||||
|
||||
Reference in New Issue
Block a user