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

Method push

rich/_stack.py:14–16  ·  view source on GitHub ↗

Push an item on to the stack (append in stack nomenclature).

(self, item: T)

Source from the content-addressed store, hash-verified

12 return self[-1]
13
14 def push(self, item: T) -> None:
15 """Push an item on to the stack (append in stack nomenclature)."""
16 self.append(item)

Callers 3

test_stackFunction · 0.95
enter_styleMethod · 0.45
__rich_console__Method · 0.45

Calls 1

appendMethod · 0.45

Tested by 1

test_stackFunction · 0.76