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

Method pop

rich/style.py:789–796  ·  rich/style.py::StyleStack.pop

Pop last style and discard. Returns: Style: New current style (also available as stack.current)

(self)

Source from the content-addressed store, hash-verified

787 self._stack.append(self._stack[-1] + style)
788
789 def pop(self) -> Style:
790 class="st">"""Pop last style and discard.
791
792 Returns:
793 Style: New current style (also available as stack.current)
794 class="st">"""
795 self._stack.pop()
796 return self._stack[-1]

Callers 11

test_style_stackFunction · 0.95
__rich_console__Method · 0.95
test_stackFunction · 0.45
status.pyFile · 0.45
clear_liveMethod · 0.45
pop_render_hookMethod · 0.45
pop_themeMethod · 0.45
live.pyFile · 0.45
leave_styleMethod · 0.45
__rich_console__Method · 0.45
renderFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_style_stackFunction · 0.76
test_stackFunction · 0.36