From 007f8999be07930a6e7741fcbbfacb3661ad9d16 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sun, 28 Mar 2021 16:48:23 +0100 Subject: [PATCH] Docs --- rich/segment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rich/segment.py b/rich/segment.py index 66b8f3b4..d7953daf 100644 --- a/rich/segment.py +++ b/rich/segment.py @@ -42,7 +42,7 @@ class Segment(NamedTuple): Args: text (str): A piece of text. style (:class:`~rich.style.Style`, optional): An optional style to apply to the text. - control (Tuple[ControlCode..], optional): Optional tuple of control codes. + control (Tuple[ControlCode..], optional): Optional sequence of control codes. """ text: str = "" @@ -50,7 +50,7 @@ class Segment(NamedTuple): style: Optional[Style] = None """An optional style.""" control: Optional[Sequence[ControlCode]] = None - """True if the segment contains control codes, otherwise False.""" + """Optional sequence of control codes.""" def __repr__(self) -> str: """Simplified repr."""