Skip to content

Commit

Permalink
Add a couple of asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Apr 14, 2023
1 parent a6ef648 commit caafe6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pip/_internal/resolution/resolvelib/candidates.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ def __init__(
)

if cache_entry is not None:
assert ireq.link.is_wheel
assert ireq.link.is_file
if cache_entry.persistent and template.link is template.original_link:
ireq.is_wheel_from_cache = True
if cache_entry.origin is not None:
Expand Down

0 comments on commit caafe6e

Please sign in to comment.