WorkList WorkList dataclass WorkList() Bases: Generic[ElemType] The worklist data structure. The worklist is a stack that allows for O(1) removal of elements from the stack.