class_docstr: A small shim over builtin list.
class_docstr_tok: ["A","small","shim","over","builtin","list","."]
docstr: Get top of stack.
docstr_tok: ["Get","top","of","stack","."]
code: def top(self) -> T:
      """Get top of stack."""
      return self[-1]
  
imports: from typing import List, TypeVar
label_desc: Use image node_id 1 for calling the Stack obj's underlying member method code with example usage: obj.top() and returns: self