Skip to content

Commit 98fe991

Browse files
committed
Formatting
1 parent 80e11bf commit 98fe991

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/pip/_internal/exceptions.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -778,20 +778,21 @@ def __init__(self, *, distribution: "BaseDistribution") -> None:
778778
hint_stmt=None,
779779
)
780780

781+
781782
class InvalidInstalledPackage(DiagnosticPipError):
782783
reference = "invalid-installed-package"
783784

784785
def __init__(
785-
self,
786-
*,
787-
package: "AlreadyInstalledCandidate",
788-
invalid_req_exc: "InvalidRequirement",
789-
) -> None:
786+
self,
787+
*,
788+
package: "AlreadyInstalledCandidate",
789+
invalid_req_exc: "InvalidRequirement",
790+
) -> None:
790791
super().__init__(
791792
message=Text(
792793
f"Cannot uninstall {package} because it has an invalid requirement:\n"
793794
f"{invalid_req_exc.args[0]}."
794-
),
795+
),
795796
context="Since pip 24.1+ invalid requirements can not be read by pip.",
796797
hint_stmt="Please use 'pip<24.1' if you need to uninstall this package.",
797798
)

0 commit comments

Comments
 (0)