✏️ 正在编辑: _stack.py
路径:
/opt/cloudlinux/venv/lib/python3.11/site-packages/pip/_vendor/rich/_stack.py
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
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)
💾 保存文件
← 返回文件管理器