mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
__init__.pyi: Add missing methods on pkg_resources.VersionConflict (#3318)
This commit is contained in:
committed by
Sebastian Rittau
parent
d82d3396e7
commit
4027add6b3
16
third_party/3/pkg_resources/__init__.pyi
vendored
16
third_party/3/pkg_resources/__init__.pyi
vendored
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user