Python type-hints where only the first item is None
I am implementing a priority queue class in Python using a binary heap, which has a attribute that stores the binary tree. In my implementation, I’m using 1-indexing because it has the nice property that I can use lists (say, the list is called heap) and the children of heap[i] are exactly heap[2*i] and heap[2*i+1],… Read More Python type-hints where only the first item is None