diff --git a/src/pip/_internal/exceptions.py b/src/pip/_internal/exceptions.py index 9d97ea87c01..a3bb0eb1546 100644 --- a/src/pip/_internal/exceptions.py +++ b/src/pip/_internal/exceptions.py @@ -805,4 +805,7 @@ def __init__( def __str__(self) -> str: nice_available = " ".join(f'"{e}", ' for e in self.available_extras)[:-2] - return f"{self.base} {self.version} does not provide the extra '{self.extra}'\n{self.base} provides extras: {nice_available}" + return ( + f"{self.base} {self.version} does not provide the extra '{self.extra}'" + f"\n{self.base} provides extras: {nice_available}" + )