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

Method __call__

rich/pretty.py:233–246  ·  view source on GitHub ↗
(self, value: Any)

Source from the content-addressed store, hash-verified

231 pprint: bool = True
232
233 def __call__(self, value: Any) -> Any:
234 if self.pprint:
235 return _ipy_display_hook(
236 value,
237 console=console,
238 overflow=overflow,
239 indent_guides=indent_guides,
240 max_length=max_length,
241 max_string=max_string,
242 max_depth=max_depth,
243 expand_all=expand_all,
244 )
245 else:
246 return repr(value)
247
248 # replace plain text formatter with rich formatter
249 rich_formatter = RichFormatter()

Callers

nothing calls this directly

Calls 1

_ipy_display_hookFunction · 0.85

Tested by

no test coverage detected