MisterAI's picture
download
raw
351 Bytes
from typing import List, TypeVar
T = TypeVar("T")
class Stack(List[T]):
"""A small shim over builtin list."""
@property
def top(self) -> T:
"""Get top of stack."""
return self[-1]
def push(self, item: T) -> None:
"""Push an item on to the stack (append in stack nomenclature)."""
self.append(item)

Xet Storage Details

Size:
351 Bytes
·
Xet hash:
03934b005e888fbaaa77021d9e37ea0bbb584f8ec913b0fc589f74b2c63b8fee

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.