mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-21 08:20:44 +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: https://github.com/pypa/setuptools/blob/8f82e5077e2d3aab14aa3da636f79d37ff6d7ed7/pkg_resources/__init__.py#L2531
This commit is contained in:
committed by
Jelle Zijlstra
parent
75581cf7da
commit
90d3a6e2e2
+1
@@ -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