From 42d20c4a0798b43d1301ee5cb6a36c15b927fe32 Mon Sep 17 00:00:00 2001 From: Sabby6 Date: Mon, 20 Jul 2020 23:01:50 +0530 Subject: [PATCH] pkg_resources: Add missing methods of pkg_resources.DistributionNotFound (#4344) --- third_party/3/pkg_resources/__init__.pyi | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/third_party/3/pkg_resources/__init__.pyi b/third_party/3/pkg_resources/__init__.pyi index a89fd877c..225f58d8f 100644 --- a/third_party/3/pkg_resources/__init__.pyi +++ b/third_party/3/pkg_resources/__init__.pyi @@ -201,7 +201,15 @@ class IMetadataProvider: def run_script(self, script_name: str, namespace: Dict[str, Any]) -> None: ... class ResolutionError(Exception): ... -class DistributionNotFound(ResolutionError): ... + +class DistributionNotFound(ResolutionError): + @property + def req(self) -> Requirement: ... + @property + def requirers(self) -> Set[str]: ... + @property + def requirers_str(self) -> str: ... + def report(self) -> str: ... class VersionConflict(ResolutionError): @property