mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-11-02 09:37:30 +08:00
Use protocols instead of importlib.abc.Loader/MetaPathFinder/PathEntryFinder (#11890)
This commit is contained in:
1 parent
6565e8a0a0
commit
b42e3b2e89
8 files changed
+72
-25
No files matched your search
@@ -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