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

Function render

tests/test_card.py:20–26  ·  view source on GitHub ↗
(renderable: RenderableType)

Source from the content-addressed store, hash-verified

18
19
20def render(renderable: RenderableType) -> str:
21 console = Console(
22 width=100, file=io.StringIO(), color_system="truecolor", legacy_windows=False
23 )
24 console.print(renderable)
25 output = replace_link_ids(console.file.getvalue())
26 return output
27
28
29def test_card_render():

Callers 2

test_card_renderFunction · 0.70
test_card.pyFile · 0.70

Calls 3

printMethod · 0.95
ConsoleClass · 0.90
replace_link_idsFunction · 0.70

Tested by

no test coverage detected