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

Method push_render_hook

rich/console.py:843–850  ·  view source on GitHub ↗

Add a new render hook to the stack. Args: hook (RenderHook): Render hook instance.

(self, hook: RenderHook)

Source from the content-addressed store, hash-verified

841 self._live_stack.pop()
842
843 def push_render_hook(self, hook: RenderHook) -> None:
844 """Add a new render hook to the stack.
845
846 Args:
847 hook (RenderHook): Render hook instance.
848 """
849 with self._lock:
850 self._render_hooks.append(hook)
851
852 def pop_render_hook(self) -> None:
853 """Pop the last renderhook from the stack."""

Callers 1

startMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected