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

Method get

rich/console.py:334–340  ·  view source on GitHub ↗

Get the result of the capture.

(self)

Source from the content-addressed store, hash-verified

332 self._result = self._console.end_capture()
333
334 def get(self) -> str:
335 """Get the result of the capture."""
336 if self._result is None:
337 raise CaptureError(
338 "Capture result is not available until context manager exits."
339 )
340 return self._result
341
342
343class ThemeContext:

Callers 7

__init__Method · 0.45
_detect_color_systemMethod · 0.45
is_terminalMethod · 0.45
is_dumb_terminalMethod · 0.45
sizeMethod · 0.45
measureMethod · 0.45
get_styleMethod · 0.45

Calls 1

CaptureErrorClass · 0.85

Tested by

no test coverage detected