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

Function render

tests/test_panel.py:32–37  ·  view source on GitHub ↗
(panel, width=50)

Source from the content-addressed store, hash-verified

30
31
32def render(panel, width=50) -> str:
33 console = Console(file=io.StringIO(), width=50, legacy_windows=False)
34 console.print(panel)
35 result = console.file.getvalue()
36 print(result)
37 return result
38
39
40@pytest.mark.parametrize("panel,expected", zip(tests, expected))

Callers 2

test_render_panelFunction · 0.70
test_panel.pyFile · 0.70

Calls 3

printMethod · 0.95
ConsoleClass · 0.90
printFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…