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

Function render

tests/test_inspect.py:58–61  ·  view source on GitHub ↗
(obj, methods=False, value=False, width=50)

Source from the content-addressed store, hash-verified

56
57
58def render(obj, methods=False, value=False, width=50) -> str:
59 console = Console(file=io.StringIO(), width=width, legacy_windows=False)
60 inspect(obj, console=console, methods=methods, value=value)
61 return console.file.getvalue()
62
63
64class InspectError(Exception):

Calls 2

ConsoleClass · 0.90
inspectFunction · 0.90

Tested by

no test coverage detected