Skip to content

Commit 45b7a5c

Browse files
committed
Use _typeshed.importlib.Loader protocol in pkg_resources stub
1 parent 6cddd52 commit 45b7a5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stubs/setuptools/pkg_resources/__init__.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import types
22
import zipimport
33
from _typeshed import Incomplete, StrPath, Unused
4+
from _typeshed.importlib import LoaderProtocol
45
from collections.abc import Callable, Generator, Iterable, Iterator, Sequence
56
from io import BytesIO
67
from itertools import chain
@@ -359,7 +360,7 @@ def evaluate_marker(text: str, extra: Incomplete | None = None) -> bool: ...
359360
class NullProvider:
360361
egg_name: str | None
361362
egg_info: str | None
362-
loader: types._LoaderProtocol | None
363+
loader: LoaderProtocol | None
363364
module_path: str | None
364365

365366
def __init__(self, module: _ModuleLike) -> None: ...

0 commit comments

Comments
 (0)