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

Method copy

rich/text.py:443–455  ·  rich/text.py::Text.copy

Return a copy of this instance.

(self)

Source from the content-addressed store, hash-verified

441 return copy_self
442
443 def copy(self) -> class="st">"Text":
444 class="st">""class="st">"Return a copy of this instance."class="st">""
445 copy_self = Text(
446 self.plain,
447 style=self.style,
448 justify=self.justify,
449 overflow=self.overflow,
450 no_wrap=self.no_wrap,
451 end=self.end,
452 tab_size=self.tab_size,
453 )
454 copy_self._spans[:] = self._spans
455 return copy_self
456
457 def stylize(
458 self,

Callers 15

test_copyFunction · 0.95
__add__Method · 0.95
splitMethod · 0.95
divideMethod · 0.95
with_indent_guidesMethod · 0.95
get_style_at_offsetMethod · 0.45
appendMethod · 0.45
append_textMethod · 0.45
__call__Method · 0.45
make_tasks_tableMethod · 0.45
_renderMethod · 0.45

Calls 1

TextClass · 0.85

Tested by 2

test_copyFunction · 0.76