MCPcopy
hub / github.com/Textualize/rich / copy_styles

Method copy_styles

rich/text.py:1054–1060  ·  view source on GitHub ↗

Copy styles from another Text instance. Args: text (Text): A Text instance to copy styles from, must be the same length.

(self, text: "Text")

Source from the content-addressed store, hash-verified

1052 return self
1053
1054 def copy_styles(self, text: "Text") -> None:
1055 """Copy styles from another Text instance.
1056
1057 Args:
1058 text (Text): A Text instance to copy styles from, must be the same length.
1059 """
1060 self._spans.extend(text._spans)
1061
1062 def split(
1063 self,

Callers 1

render_strMethod · 0.80

Calls 1

extendMethod · 0.45

Tested by

no test coverage detected