new exception.png

This commit is contained in:
Will McGugan 2020-11-15 11:00:38 +00:00
parent dc02178c04
commit 7dd6ed8b92
1 changed files with 4 additions and 1 deletions

View File

@ -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.
"""