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:
8f82e5077e/pkg_resources/__init__.py (L2531)
This commit is contained in:
Joachim Jablon
2019-02-01 16:58:13 +01:00
committed by Jelle Zijlstra
parent 75581cf7da
commit 90d3a6e2e2

View File

@@ -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