APIs > py > heapq > heappushpop heappushpop heappushpop[S: HasLtCollectionElement](mut heap: List[S], item: S) -> S