mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-11 22:12:22 +08:00
pkg_resources: Fix unconstrained TypeVars (#7941)
499c468a57/pkg_resources/__init__.py (L1049)
Part of #7928
This commit is contained in:
@@ -58,13 +58,15 @@ class Environment:
|
||||
def __add__(self, other: Distribution | Environment) -> Environment: ...
|
||||
def __iadd__(self: Self, other: Distribution | Environment) -> Self: ...
|
||||
@overload
|
||||
def best_match(self, req: Requirement, working_set: WorkingSet) -> Distribution: ...
|
||||
def best_match(self, req: Requirement, working_set: WorkingSet, *, replace_conflicting: bool = ...) -> Distribution: ...
|
||||
@overload
|
||||
def best_match(self, req: Requirement, working_set: WorkingSet, installer: Callable[[Requirement], _T] = ...) -> _T: ...
|
||||
def best_match(
|
||||
self, req: Requirement, working_set: WorkingSet, installer: Callable[[Requirement], _T], replace_conflicting: bool = ...
|
||||
) -> _T: ...
|
||||
@overload
|
||||
def obtain(self, requirement: Requirement) -> None: ...
|
||||
@overload
|
||||
def obtain(self, requirement: Requirement, installer: Callable[[Requirement], _T] = ...) -> _T: ...
|
||||
def obtain(self, requirement: Requirement, installer: Callable[[Requirement], _T]) -> _T: ...
|
||||
def scan(self, search_path: Sequence[str] | None = ...) -> None: ...
|
||||
|
||||
def parse_requirements(strs: str | Iterable[str]) -> Generator[Requirement, None, None]: ...
|
||||
|
||||
Reference in New Issue
Block a user