mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-18 09:55:59 +08:00
importlib.util.find_spec has optional return type (#2270)
This commit is contained in:
committed by
Jelle Zijlstra
parent
95eff73ab2
commit
507ad2dcbe
@@ -26,7 +26,7 @@ if sys.version_info >= (3, 4):
|
||||
def decode_source(source_bytes: bytes) -> str: ...
|
||||
def find_spec(
|
||||
name: str, package: Optional[str] = ...
|
||||
) -> importlib.machinery.ModuleSpec: ...
|
||||
) -> Optional[importlib.machinery.ModuleSpec]: ...
|
||||
def spec_from_loader(
|
||||
name: str, loader: Optional[importlib.abc.Loader], *,
|
||||
origin: Optional[str] = ..., loader_state: Optional[Any] = ...,
|
||||
|
||||
Reference in New Issue
Block a user