In most places, the pseudocode given for the A* algorithm looks something like this:
def A_star(start, heuristic): frontier: PriorityQueue co