__init__.pyi: Add missing methods on pkg_resources.VersionConflict (#3318)

This commit is contained in:
Utkarsh Gupta authored and Sebastian Rittau committed 2019-10-08 20:36:38 +02:00
1 parent d82d3396e7
commit 4027add6b3
1 file changed
+14 -2
+14 -2
View File
@@ -1,6 +1,6 @@
# Stubs for pkg_resources (Python 3.4)
from typing import Any, Callable, Dict, IO, Iterable, Generator, Optional, Sequence, Tuple, List, Union, TypeVar, overload
from typing import Any, Callable, Dict, IO, Iterable, Generator, Optional, Sequence, Tuple, List, Set, Union, TypeVar, overload
from abc import ABCMeta
import importlib.abc
import types
@@ -202,7 +202,19 @@ class IMetadataProvider:
class ResolutionError(Exception): ...
class DistributionNotFound(ResolutionError): ...
class VersionConflict(ResolutionError): ...
class VersionConflict(ResolutionError):
@property
def dist(self) -> Any: ...
@property
def req(self) -> Any: ...
def report(self) -> str: ...
def with_context(self, required_by: Dict[str, Any]) -> VersionConflict: ...
class ContextualVersionConflict(VersionConflict):
@property
def required_by(self) -> Set[Any]: ...
class UnknownExtra(ResolutionError): ...
class ExtractionError(Exception):