title: Expected ")" Pylance
body: <p><a href="https://i.stack.imgur.com/XgnAF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XgnAF.png" alt="enter image description here" /></a>I am writing a code in python(Vs code) and I have this error:</p>
  <pre><code>Expected &quot;)&quot;  Pylance 
  </code></pre>
  <p>the error occurs in: <code>def main()</code><br />
  I tried to run my main and print it to my screen. I googled it and couldn't find any solutions. How can I fix that?</p>
  <p>This is my code:</p>
  <pre><code>#The main driver of our code , this will handle user input and updating the graphics 
  def main():  
  
     p.init ()
     screen = p.display.set_mode((WIDTH,HEIGHT))
     clock = p.time.Clock ()
     screen.fill(p.Color(&quot;white&quot;))
     gs= ChessEngine.GameState()
     print(gs.board)
     loadImages() #only do this once, before the whille loop
     running=True
     while running :
      for e in p.event.get():
       if e.type == p.QUIT:
        running =False
   
     drawGameState(screen,gs)
     clock.tick(MAX_FPS)
     p.display.flip() 
  
   '''
  Responsible for all the graphics within a currnet game state.
   '''
   def drawGameState(screen,gs):
    drawBoard (screen) #draw squars on the board
   #add in piece highlighting or move suggestions
   
   drawPieces(screen,gs.board) #draw pieces on the top of those squares
  
  '''
  draw the squares on the board the top left square is always light
  
  '''
  def drawBoard(screen):
   colors = [p.Color(&quot;white&quot;), p.Color(&quot;gray&quot;)]
   for r in range (DIMENSION):
     for c in range (DIMENSION):
      color = colors[((r+c) % 2)]
      p.draw.rect(screen , color , p.Rect(c*SQ_SIZE,r*SQ_SIZE,SQ_SIZE_SQ_SIZE))
  
  '''
  draw the pieces on the board using the current Game.State.board
  '''
  def drawPieces(screen,board):
      for r in range (DIMENSION):
          for c in range (DIMENSION):
              piece=board[r][c]
              if piece != &quot;--&quot;: #not empty squares
                  screen.blit(IMAGES[piece],p.Rect(c*SQ_SIZE,r*SQ_SIZE))
   
  
  if __name__ == '__main__':
     main()
  </code></pre>