mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-31 00:24:24 +08:00
Use protocols instead of importlib.abc.Loader/MetaPathFinder/PathEntryFinder (#11890)
This commit is contained in:
committed by
GitHub
parent
6565e8a0a0
commit
b42e3b2e89
@@ -1,6 +1,7 @@
|
||||
import types
|
||||
import zipimport
|
||||
from _typeshed import Incomplete, StrPath, Unused
|
||||
from _typeshed.importlib import LoaderProtocol
|
||||
from collections.abc import Callable, Generator, Iterable, Iterator, Sequence
|
||||
from io import BytesIO
|
||||
from itertools import chain
|
||||
@@ -359,7 +360,7 @@ def evaluate_marker(text: str, extra: Incomplete | None = None) -> bool: ...
|
||||
class NullProvider:
|
||||
egg_name: str | None
|
||||
egg_info: str | None
|
||||
loader: types._LoaderProtocol | None
|
||||
loader: LoaderProtocol | None
|
||||
module_path: str | None
|
||||
|
||||
def __init__(self, module: _ModuleLike) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user