mirror of https://github.com/Textualize/rich.git
new exception.png
This commit is contained in:
parent
dc02178c04
commit
7dd6ed8b92
|
@ -288,7 +288,7 @@ class Segment(NamedTuple):
|
|||
"""Simplify an iterable of segments by combining contiguous segments with the same style.
|
||||
|
||||
Args:
|
||||
segments (Iterable[Segment]): An iterable segments.
|
||||
segments (Iterable[Segment]): An iterable of segments.
|
||||
|
||||
Returns:
|
||||
Iterable[Segment]: A possibly smaller iterable of segments that will render the same way.
|
||||
|
@ -314,6 +314,9 @@ class Segment(NamedTuple):
|
|||
def strip_links(cls, segments: Iterable["Segment"]) -> Iterable["Segment"]:
|
||||
"""Remove all links from an iterable of styles.
|
||||
|
||||
Args:
|
||||
segments (Iterable[Segment]): An iterable segments.
|
||||
|
||||
Yields:
|
||||
Segment: Segments with link removed.
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue