pkg_resources: Add missing methods of pkg_resources.DistributionNotFound (#4344)

This commit is contained in:
Sabby6
2020-07-20 23:01:50 +05:30
committed by GitHub
parent 334f77a2d7
commit 42d20c4a07

View File

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