From 45b7a5c9ae08beeefd06fb80a1238a3ca1174446 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Fri, 10 May 2024 15:50:57 +0100 Subject: [PATCH] Use _typeshed.importlib.Loader protocol in pkg_resources stub --- stubs/setuptools/pkg_resources/__init__.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stubs/setuptools/pkg_resources/__init__.pyi b/stubs/setuptools/pkg_resources/__init__.pyi index 89d9b7c51ae0..d48dd86f6a0e 100644 --- a/stubs/setuptools/pkg_resources/__init__.pyi +++ b/stubs/setuptools/pkg_resources/__init__.pyi @@ -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: ...