mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
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:
committed by
Jelle Zijlstra
parent
75581cf7da
commit
90d3a6e2e2
1
third_party/3/pkg_resources/__init__.pyi
vendored
1
third_party/3/pkg_resources/__init__.pyi
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user