input: import sqlite3
  
  def generate_bestseller_table(genre: str) -> str:
      """
      Generate an HTML table displaying information about the top 10 bestselling books in a specific genre.
      >>> generate_bestseller_table('Fantasy')
      '<table><tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr><tr><td>Book1</td><td>Author1</td><td>Fantasy</td><td>1000</td></tr><tr><td>Book2</td><td>Author2</td><td>Fantasy</td><td>900</td></tr><tr><td>Book3</td><td>Author3</td><td>Fantasy</td><td>800</td></tr><tr><td>Book4</td><td>Author4</td><td>Fantasy</td><td>700</td></tr><tr><td>Book5</td><td>Author5</td><td>Fantasy</td><td>600</td></tr><tr><td>Book6</td><td>Author6</td><td>Fantasy</td><td>500</td></tr><tr><td>Book7</td><td>Author7</td><td>Fantasy</td><td>400</td></tr><tr><td>Book8</td><td>Author8</td><td>Fantasy</td><td>300</td></tr><tr><td>Book9</td><td>Author9</td><td>Fantasy</td><td>200</td></tr><tr><td>Book10</td><td>Author10</td><td>Fantasy</td><td>100</td></tr></table>'
      """
      
      # Mock data for demonstration
      results = [
          ('Book1', 'Author1', 'Fantasy', 1000),
          ('Book2', 'Author2', 'Fantasy', 900),
          ('Book3', 'Author3', 'Fantasy', 800),
          ('Book4', 'Author4', 'Fantasy', 700),
          ('Book5', 'Author5', 'Fantasy', 600),
          ('Book6', 'Author6', 'Fantasy', 500),
          ('Book7', 'Author7', 'Fantasy', 400),
          ('Book8', 'Author8', 'Fantasy', 300),
          ('Book9', 'Author9', 'Fantasy', 200),
          ('Book10', 'Author10', 'Fantasy', 100)
      ]
  
      # generate the HTML code
      html = '<table>'
      html += '<tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr>'
  
      for result in results:
          title, author, genre, sales = result
          html += f'<tr><td>{title}</td><td>{author}</td><td>{genre}</td><td>{sales}</td></tr>'
  
      html += '</table>'
  
      return html
output:     # generate the HTML code
      html = '<table>'
      html += '<tr><th>Title</th><th>Author</th><th>Genre</th><th>Sales</th></tr>'
  
      for result in results:
          title, author, genre, sales = result
          html += f'<tr><td>{title}</td><td>{author}</td><td>{genre}</td><td>{sales}</td></tr>'
  
      html += '</table>'
  
      return html