1
0
Fork 0
forked from bton/matekasse
matekasse/venv/lib/python3.11/site-packages/pip/_internal/resolution/base.py

21 lines
583 B
Python
Raw Normal View History

2023-07-28 21:30:45 +00:00
from typing import Callable, List, Optional
from pip._internal.req.req_install import InstallRequirement
from pip._internal.req.req_set import RequirementSet
InstallRequirementProvider = Callable[
[str, Optional[InstallRequirement]], InstallRequirement
]
class BaseResolver:
def resolve(
self, root_reqs: List[InstallRequirement], check_supported_wheels: bool
) -> RequirementSet:
raise NotImplementedError()
def get_installation_order(
self, req_set: RequirementSet
) -> List[InstallRequirement]:
raise NotImplementedError()