Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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_stack
Function · 0.95
enter_style
Method · 0.45
__rich_console__
Method · 0.45
Calls
1
append
Method · 0.45
Tested by
1
test_stack
Function · 0.76