This commit is contained in:
Will McGugan 2021-03-28 16:48:23 +01:00 committed by GitHub
parent 0ce7f3203d
commit 007f8999be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class Segment(NamedTuple):
Args: Args:
text (str): A piece of text. text (str): A piece of text.
style (:class:`~rich.style.Style`, optional): An optional style to apply to the 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 = "" text: str = ""
@ -50,7 +50,7 @@ class Segment(NamedTuple):
style: Optional[Style] = None style: Optional[Style] = None
"""An optional style.""" """An optional style."""
control: Optional[Sequence[ControlCode]] = None control: Optional[Sequence[ControlCode]] = None
"""True if the segment contains control codes, otherwise False.""" """Optional sequence of control codes."""
def __repr__(self) -> str: def __repr__(self) -> str:
"""Simplified repr.""" """Simplified repr."""