Method: rich.text.Text.apply_meta
Calls: 2, Exceptions: 0, Paths: 1Back
Path 1: 2 calls (1.0)
{'foo': 'bar'} (2)
0 (1) 1 (1)
None (1) 3 (1)
1def apply_meta(
2 self, meta: Dict[str, Any], start: int = 0, end: Optional[int] = None
3 ) -> None:
4 """Apply meta data to the text, or a portion of the text.
5
6 Args:
7 meta (Dict[str, Any]): A dict of meta information.
8 start (int): Start offset (negative indexing is supported). Defaults to 0.
9 end (Optional[int], optional): End offset (negative indexing is supported), or None for end of text. Defaults to None.
10
11 """
12 style = Style.from_meta(meta)
13 self.stylize(style, start=start, end=end)