From af71f3c18dff4434fe442c689229dc727969612c Mon Sep 17 00:00:00 2001 From: Damian Date: Sat, 9 Oct 2021 00:50:56 -0400 Subject: [PATCH] # This is a combination of 19 commits. parent 02b4f864896ae60b342d317f7bfe5c0ad25b348b author Damian 1633754869 -0400 committer Damian 1633754928 -0400 # This is a combination of 14 commits.tree 962cf1d58cffa4bd5102aa4cc6c1adaedb8c3cc0 parent 02b4f864896ae60b342d317f7bfe5c0ad25b348b author Damian 1633754869 -0400 committer Damian 1633754892 -0400 # This is a combination of 13 commits. # This is the 1st commit message: Return a better error message if a `file:` URL is not found (#10263) Co-authored-by: Tzu-ping Chung Co-authored-by: Pradyun Gedam # This is the commit message #2: Prefer failure causes when backtracking # This is the commit message #3: This fix is in the wrong PR confusing matters # This is the commit message #4: Change name to backtrack_causes Create is_backtrack_cause function # This is the commit message #5: Fix newlines # This is the commit message #6: Typo Fix in Comment # This is the commit message #7: Fix lint errors # This is the commit message #8: Add News Item # This is the commit message #9: Newline # This is the commit message #10: Better news. # This is the commit message #11: Fix known depths # This is the commit message #12: Fix known depths # This is the commit message #13: Fix known depths # This is the commit message #14: This fix is in the wrong PR confusing matters # This is the commit message #16: Change name to backtrack_causes Create is_backtrack_cause function # This is the commit message #18: Fix newlines # This is the commit message #19: Typo Fix in Comment --- src/pip/_internal/resolution/resolvelib/provider.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pip/_internal/resolution/resolvelib/provider.py b/src/pip/_internal/resolution/resolvelib/provider.py index f1d295aeb6a..703511f3f61 100644 --- a/src/pip/_internal/resolution/resolvelib/provider.py +++ b/src/pip/_internal/resolution/resolvelib/provider.py @@ -205,7 +205,8 @@ def get_dependencies(self, candidate: Candidate) -> Sequence[Requirement]: @staticmethod def is_backtrack_cause( - identifier: str, backtrack_causes: Sequence["RequirementInformation"] + identifier: str, + backtrack_causes: Sequence["RequirementInformation"] ) -> bool: for backtrack_cause in backtrack_causes: if identifier == backtrack_cause.requirement.name: