Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/pip/_internal/exceptions/wheel.py: 60%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

10 statements  

1"""Wheel-related pip exceptions.""" 

2 

3from pip._internal.exceptions._base import InstallationError 

4 

5 

6class InvalidWheelFilename(InstallationError): 

7 """Invalid wheel filename.""" 

8 

9 

10class UnsupportedWheel(InstallationError): 

11 """Unsupported wheel.""" 

12 

13 

14class InvalidWheel(InstallationError): 

15 """Invalid (e.g. corrupt) wheel.""" 

16 

17 def __init__(self, location: str, name: str): 

18 self.location = location 

19 self.name = name 

20 

21 def __str__(self) -> str: 

22 return f"Wheel '{self.name}' located at {self.location} is invalid."