summaryrefslogtreecommitdiff
path: root/src/pip/_vendor/rich/text.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/pip/_vendor/rich/text.py')
-rw-r--r--src/pip/_vendor/rich/text.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/pip/_vendor/rich/text.py b/src/pip/_vendor/rich/text.py
index b14055aa7..998cb87da 100644
--- a/src/pip/_vendor/rich/text.py
+++ b/src/pip/_vendor/rich/text.py
@@ -53,11 +53,7 @@ class Span(NamedTuple):
"""Style associated with the span."""
def __repr__(self) -> str:
- return (
- f"Span({self.start}, {self.end}, {self.style!r})"
- if (isinstance(self.style, Style) and self.style._meta)
- else f"Span({self.start}, {self.end}, {repr(self.style)})"
- )
+ return f"Span({self.start}, {self.end}, {self.style!r})"
def __bool__(self) -> bool:
return self.end > self.start
@@ -1204,7 +1200,7 @@ class Text(JupyterMixin):
width (int): Maximum characters in a line.
Returns:
- Lines: List of lines.
+ Lines: Lines container.
"""
lines: Lines = Lines()
append = lines.append