Skip to content

Commit caafe6e

Browse files
committed
Add a couple of asserts
1 parent a6ef648 commit caafe6e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pip/_internal/resolution/resolvelib/candidates.py

+2
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,8 @@ def __init__(
277277
)
278278

279279
if cache_entry is not None:
280+
assert ireq.link.is_wheel
281+
assert ireq.link.is_file
280282
if cache_entry.persistent and template.link is template.original_link:
281283
ireq.is_wheel_from_cache = True
282284
if cache_entry.origin is not None:

0 commit comments

Comments
 (0)