title: Expected ":"Pylance
body: <p>I can't find where the missing &quot;:&quot; is.</p>
  <p>My code is:</p>
  <pre><code>def A_star_Traversal(cost, heuristic, start_point, goals):
      path = []
      hashTable = {}
      for i in goals:
          hashTable[i] = 1
      n = len(cost)
      visited = [False for j in range (n)]
      pq = [[0+heuristic[0],start_point]]
      heapq.heapify(pq)
      while(len(pq)):
          v = heapq.heappop(pq)
          if(hashTable.get(v)):
              path.append(v)
              break
          visited[v] = True
          path.append(v)
          f=1
          for i in range n:     '''this is where i get the error'''
              if(visited[i]==False and cost[v][i]&gt;0):
                  pq.append([cost[v][i]+heuristic[i],i])
                  heapq.heapify(pq)
                  f=0
          if(f):
              path.pop()
      return path
  </code></pre>
  <p>I am getting the error at <code>for i in range n:</code>.</p>
  <p>I looked through all the for and while loop and if else condition statements making sure that each one had ':'. However, despite finding no missing ':', the compilation clearly indicates that I have missed it somewhere. I am hoping that it would not be the same for others.</p>