Skip to content

Commit

Permalink
Use _typeshed.importlib.Loader protocol in pkg_resources stub
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed May 10, 2024
1 parent 6cddd52 commit 45b7a5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stubs/setuptools/pkg_resources/__init__.pyi
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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: ...
Expand Down

0 comments on commit 45b7a5c

Please sign in to comment.