m2m模型翻译
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
583 B

6 months ago
  1. from typing import Callable, List, Optional
  2. from pip._internal.req.req_install import InstallRequirement
  3. from pip._internal.req.req_set import RequirementSet
  4. InstallRequirementProvider = Callable[
  5. [str, Optional[InstallRequirement]], InstallRequirement
  6. ]
  7. class BaseResolver:
  8. def resolve(
  9. self, root_reqs: List[InstallRequirement], check_supported_wheels: bool
  10. ) -> RequirementSet:
  11. raise NotImplementedError()
  12. def get_installation_order(
  13. self, req_set: RequirementSet
  14. ) -> List[InstallRequirement]:
  15. raise NotImplementedError()