From 90d3a6e2e279c907f7a62b2ff7651089da6ab275 Mon Sep 17 00:00:00 2001 From: Joachim Jablon Date: Fri, 1 Feb 2019 16:58:13 +0100 Subject: [PATCH] pkg_resources Add PKG_INFO str attribute for Distribution class (#2775) To avoid ``` error: "Distribution" has no attribute "PKG_INFO" ``` This is the corresponding implementation: https://github.com/pypa/setuptools/blob/8f82e5077e2d3aab14aa3da636f79d37ff6d7ed7/pkg_resources/__init__.py#L2531 --- third_party/3/pkg_resources/__init__.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/third_party/3/pkg_resources/__init__.pyi b/third_party/3/pkg_resources/__init__.pyi index b1703fc52..657a0545a 100644 --- a/third_party/3/pkg_resources/__init__.pyi +++ b/third_party/3/pkg_resources/__init__.pyi @@ -120,6 +120,7 @@ def find_distributions(path_item: str, only: bool = ...) -> Generator[Distributi def get_distribution(dist: Union[Requirement, str, Distribution]) -> Distribution: ... class Distribution(IResourceProvider, IMetadataProvider): + PKG_INFO: str location: str project_name: str key: str