input: def generate_html_table(genre: str) -> str:
      """ Generates an HTML table displaying the top 10 bestselling books in a specific genre from a SQLite database.
      >>> generate_html_table('Fantasy')
      '<table><tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr><tr><td>[Title1]</td><td>[Author1]</td><td>[Fantasy]</td><td>[Sales1]</td></tr><tr><td>[Title2]</td><td>[Author2]</td><td>[Fantasy]</td><td>[Sales2]</td></tr><tr><td>[Title3]</td><td>[Author3]</td><td>[Fantasy]</td><td>[Sales3]</td></tr><tr><td>[Title4]</td><td>[Author4]</td><td>[Fantasy]</td><td>[Sales4]</td></tr><tr><td>[Title5]</td><td>[Author5]</td><td>[Fantasy]</td><td>[Sales5]</td></tr><tr><td>[Title6]</td><td>[Author6]</td><td>[Fantasy]</td><td>[Sales6]</td></tr><tr><td>[Title7]</td><td>[Author7]</td><td>[Fantasy]</td><td>[Sales7]</td></tr><tr><td>[Title8]</td><td>[Author8]</td><td>[Fantasy]</td><td>[Sales8]</td></tr><tr><td>[Title9]</td><td>[Author9]</td><td>[Fantasy]</td><td>[Sales9]</td></tr><tr><td>[Title10]</td><td>[Author10]</td><td>[Fantasy]</td><td>[Sales10]</td></tr></table>'
      """
output:     import sqlite3
  
      conn = sqlite3.connect('books.db')
      cursor = conn.cursor()
  
      cursor.execute("""
          SELECT Title, Author, Genre, Sales
          FROM Books
          WHERE Genre = ?
          ORDER BY Sales DESC
          LIMIT 10
      """, (genre,))
  
      rows = cursor.fetchall()
      conn.close()
  
      html_table = '<table><tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr>'
      for row in rows:
          title, author, genre, sales = row
          html_table += f'<tr><td>{title}</td><td>{author}</td><td>{genre}</td><td>{sales}</td></tr>'
      html_table += '</table>'
  
      return html_table